搜索资源列表
ossue
- 在Windows环境下,参考Windows环境下线程同步、互斥操作的例子,利用基本的文件操作系统调用,模拟读写问题。编写相应的函数,建立一个记录型的共享文件,并实现对该共享文件的打开、关闭、删除、读、追加记录、删除记录等操作。同时要求利用进程的同步与互斥机制实现多个用户进程对该文件的并发访问-the Windows environment, Windows environment reference thread synchronization, contradict operation exa
minidumpreader(mfc)-goli81
- Mididump Read Program. This MiniDump Program read Process Minidump File.
MultilineAPIload
- 实现双线程高效下载 线程A从网络中读取一个数据块,存储到内存的缓存中。 线程B从缓存中读取内容,存储到文件中。-mutilineload Aline read datablockfrominternet ,save to the buffer in RAM. Bline read context from buffer,then save to file.
virtual-memory-allocation--tracking
- 编写一个程序,包括两个线程,一个线程用于模拟内存分配活动,另一个用于跟踪第一个线程的内存行为,要求两个线程之间通过信号量实现同步,模拟内存活动的线程可以从一个文件中读出要进行的内存操作。将VirtualAlloc函数的参数flAllocationType分别设置为MEM_RESET,MEM_TOP_DOWN,将flProtect参数分别设置为PAGE_GUARD,PAGE_NOACCESS,PAGE_NOCACHE,执行并查看内存分配的结果。-Write a program that consi
3pcf
- windows下多线程计算3pcf问题的源码 直接编译运行即可 从文件中读取数据-Under the multi-threaded computing 3pcf windows source code directly compile and run the problem can be read from the file
rd
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。-In Windows2000 environment, create a console process, this process contains n threads. N threads with which to express n a reader or writer. Each threa
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
os
- 功能是在进程间完成文件的传送。一个发送进程把两个文件送入消息队列,另外两个接收进程分别从消息队列各自接收一个文件。该例由3个源程序文件组成:user.h 是共用的头部文件,filesnd.c的功能是把两个文件读出并发送到消息队列,filercv.c的功能是从消息队列读取文件。-Function is to complete the file transfer between processes. A sending process the two files into the message q
ReadFile
- Visual C++利用互斥量同步线程实现文件读取进度条-Visual C++ :using mutex thread synchronization to read file with show in the progress bar
TerminateSomeEXE
- SetPrivilege提升本进程权限,从一个文件读取进程名称通过CreateToolhelp32Snapshot Process32First查找其它进程, 从而终止其它的进程-SetPrivilege permission to enhance this process, read from a file process name by CreateToolhelp32Snapshot Process32First, Find other processes to terminate oth
readfile
- VC++ 6.0 多线程读取文件的例子 适合初学者-6.0 multithreaded VC++ read file example for beginners
create-process
- 创建两个进程,让子进程读取一个文件,父进程等待子进程读取完文件后继续执行,实现进程协同工作。 进程协同工作就是协调好两个进程,使之安排好先后次序并以此执行,可以用等待函数来实现这一点。当需要等待子进程运行结束时,可在父进程中调用等待函数。 -Create two processes, allowing the child to read a file, read the parent process waits for the child process to continue exe
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
mappings
- 功能是仲裁访问的互斥体,包含创建数据文件,创建仲裁的互斥体,根据文件创建100个线程来读写,关闭对象-Function is to arbitrate access mutex,Includes creating a data file, create a mutex arbitration, creates 100 threads to read and write in the paper, close the object
MFC4D
- MFC 写的框架程序,包含分割视图,多视图,浮动对话框,多线程、进度条读取文件。 代码简单,覆盖面广-Framework of MFC programs, including split view, multiple views, floating dialog box, multithreading, progress bar to read the file.The code is simple, wide coverage
realoze
- 用udp实现可靠数据传递,从本机固定位置读取一个文件-Using udp to realize reliable data transmission, read a file the machine fixed position
JXT-file-file
- 网业文件转换成txt文件,方便阅读,不错,可以用-Network file into a TXT file, easy to read, good, can be used
hsle-page-read
- delphi文本文件的逐行读取,将文本文件从记事本中读到页面中来-Delphi text file to read line by line, the text file to read the notepad page
JQBBUW
- inf文件的读写操作的程序实例,对于初学者,这是一个很好地锻炼对象-Inf file read and write operations process instance, for starters, it s a very good exercise object,,
lock和多线程
- C#,lock和多线程的简单例子,使用线程的好处·使用线程可以把占据长时间的程序中的任务放到后台去处理 ·用户界面可以更加吸引人,这样比如用户点击了一个按钮去触发某些事件的处理,可以弹出一个进度条来显示处理的进度 ·程序的运行速度可能加快 ·在一些等待的任务实现上如用户输入、文件读写和网络收发数据等,线程就比较有用了。在这种情况下可以释放一些珍贵的资源如内存占用等等。(A simple example of C#, lock, and multithreading, the b
