搜索资源列表
last_SIP
- 主要内容: 使用ADO连接数据库,并返回数据集 使用DLL对数据集进行操作 运用windows线程技术对数据进行输出 -main elements : # 61548 use ADO to connect to the database, and return to # 61,548 data sets that use the DLL to operate data sets # 61548 windows threadin
Mutex_Critical
- 这个例子利用多线程使用不同的排序算法对数据进行排序,每一个线程使用不同的算法。主线程里使用快速排序QuickSort,其他四个算法分别建立四个子线程,在子线程中进行排序。因为每一个线程都要调用函数PrintResult把结果输出到显示器上,所以不同的线程就会争夺着向显示器输出,这样,不同线程的输出就会混合在一起,所以呢必须让线程一个接着一个输出。也就是必须对PrintResult进行互斥控 制。要进行互斥控制,则必须用到Event、Mutex、CrititicalSection、Semaph
primenumber
- 最大素数计算器,利用多线程同步实现计算所有不大于输入数据的所有素数并将其结果输出。线程数可调-The largest prime number calculator, using multi-thread synchronization to achieve the calculation of all the input data is not greater than all the prime numbers and the results output. Adjustable numbe
Threaded
- 多线程程序,未进行数据保护。程序打开一个text文件,线程按行从文件中读取数据同时计算每行 的字母数为奇数和偶数的单词的个数,然后关闭文件,输出最后的结果。 -Multithreaded programs, for data protection. Program opens a text file, thread by line read from the file while in each of the line An odd number of letters and even
RRProcessControl
- 1) 每一个进程有一个PCB,其内容可以根据具体情况设定。 2) 可以在界面设定的互斥资源(包括两种:输入设备与输出设备)的数目 3) 进程数、进入内存时间、要求服务时间可以在界面上进行设定 4) 进程之间存在一定的同步与互斥关系,可以通过界面进行设定,其表示方法如下: 进程的服务时间由三段组成:I2C10O5(表示进程的服务时间由2个时间片的输入,10个时间片的计算,5个时间片的输出) 进程间的同步关系用一个段表示:W2,表示该进程先要等待P2进程执行结束后才可以运行
producer-and-consumer
- 创建4个POSIX线程。其中2个线程(A和B)分别从2个数据文件(data1.txt和data2.txt)读取10个整数. 线程A和B把从文件中读取的逐一整数放入一个缓冲池. 缓冲池由n个缓冲区构成(n=5,并可以方便地调整为其他值),每个缓冲区可以存放一个整数。另外2个线程,C和D,各从缓冲池读取10数据。线程C、D每读出2个数据,分别求出它们的和或乘积,并打印输出。-Creating four POSIX threads. Where two threads (A and B) were r