multitreadsrc4

所属分类:进程与线程
开发工具:Visual C++
文件大小:22KB
下载次数:11
上传日期:2006-11-07 10:53:39
上 传 者suyf2008
说明:  线程的同步   虽然多线程能给我们带来好处,但是也有不少问题需要解决。例如,对于像磁盘驱动器这样独占性系统资源,由于线程可以执行进程的任何代码段,且线程的运行是由系统调度自动完成的,具有一定的不确定性,因此就有可能出现两个线程同时对磁盘驱动器进行操作,从而出现操作错误;又例如,对于银行系统的计算机来说,可能使用一个线程来更新其用户数据库,而用另外一个线程来读取数据库以响应储户的需要,极有可能读数据库的线程读取的是未完全更新的数据库,因为可能在读的时候只有一部分数据被更新过。
(thread synchronization Although multithreading can bring us benefits, but there a lso many problems to be solved. For example, as disk drives such exclusivity system resources and can thread the process of implementation of any code, and the thread running by the scheduling system automatically and to a certain extent the uncertainty, So, then there could be two threads while the disk drives operate, which have operational errors; For example, For the computer banking system, may use a thread to update users of its database, and use another thread to read a database to respond to the needs of depositors, Reading is very likely to read threads database is not fully update the database, Reading may be because the time was only part of the updated data.)

文件列表:
MultiThread10\MultiThread10.cpp (2161, 2006-10-16)
MultiThread10\MultiThread10.dsp (4285, 2006-10-16)
MultiThread10\MultiThread10.dsw (551, 2006-10-16)
MultiThread10\MultiThread10.h (1401, 2006-10-16)
MultiThread10\MultiThread10.rc (5742, 2006-10-16)
MultiThread10\MultiThread10Dlg.cpp (6029, 2006-10-16)
MultiThread10\MultiThread10Dlg.h (1536, 2006-10-16)
MultiThread10\res\MultiThread10.ico (1078, 2006-10-16)
MultiThread10\res\MultiThread10.rc2 (405, 2006-10-16)
MultiThread10\Resource.h (829, 2006-10-16)
MultiThread10\StdAfx.cpp (215, 2006-10-16)
MultiThread10\StdAfx.h (1054, 2006-10-16)
MultiThread9\MultiThread9.cpp (2147, 2006-10-15)
MultiThread9\MultiThread9.dsp (4267, 2006-10-15)
MultiThread9\MultiThread9.dsw (549, 2006-10-15)
MultiThread9\MultiThread9.h (1390, 2006-10-15)
MultiThread9\MultiThread9.rc (5529, 2006-10-15)
MultiThread9\MultiThread9Dlg.cpp (5215, 2006-10-16)
MultiThread9\MultiThread9Dlg.h (1478, 2006-10-16)
MultiThread9\res\MultiThread9.ico (1078, 2006-10-15)
MultiThread9\res\MultiThread9.rc2 (404, 2006-10-15)
MultiThread9\resource.h (782, 2006-10-15)
MultiThread9\StdAfx.cpp (214, 2006-10-15)
MultiThread9\StdAfx.h (1054, 2006-10-15)
MultiThread10\res (0, 2006-11-04)
MultiThread9\res (0, 2006-11-04)
MultiThread10 (0, 2006-11-04)
MultiThread9 (0, 2006-11-04)

近期下载者

相关文件


收藏者