Welcome![Sign In][Sign Up]
Location:
Search - thread.dat

Search list

[OS Developthread.dat

Description: int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0 -int main (int argc, char* argv []) (char ch while (true) (printf (************************************* ) printf ( 1.Reader Priority ) printf ( 2.Writer Priority ) printf ( 3.Exit to Windows ) printf (************************************* ) printf ( Enter your choice (1,2,3): ) do ( ch = (char) _getch ()) while (ch! = 1
Platform: | Size: 1024 | Author: 刘倩 | Hits:

[Internet-Networkexample

Description: 利用共享内存实现多线程间通信。 主线程派生子线程后即处于休眠状态,等待子线程结束时发出结束信号唤醒。在被唤醒后,主线程向屏幕输出结束信息! 线程A向共享内存中写入A~Z的大写字母。 线程B通过共享内存接收这些字母,并将其保存到/test.dat文件中。 注意线程之间的同步互斥! -Using shared memory communication between multi-threading. Derived from sub-thread after main thread is in sleep mode, waiting for the end of the child issued by the end of the thread wake-up signal. After being awakened, the main thread to the end of the output information on the screen! Thread A writes to the shared memory, A ~ Z of the capital letters. Thread B through shared memory to receive these letters, and save it to/test.dat file. Note that the synchronization between threads mutually exclusive!
Platform: | Size: 2048 | Author: 王锡栋 | Hits:

[Other systemsDelaunay

Description: Delaunay三角剖分算法介绍和c++源码。代码封装了其他人的代码包,在cygwin和redhat下编译通过。-This C++ library module is just a wrapper class on the Triangle package of Jonathan. The C++ wrapper will certainly slow access down if you want to mess with the triangulation but the basic delaunay triangulation should be as fast as triangle. Look at the del_interface.hpp file for getting started on what this wrapper can do for you. Also have a look at main.cpp which shows an example of using this class. The class is thread-safe. Requirements : Python, make and C++ compilers. Supported C/C++ Compilers: g++/icpc (Intel C++). Also needed is doxygen for generating documentation. Compilation : Just type make Testing : Goto the bin directory, and type ./test ../data/input.dat (after compilation of course).
Platform: | Size: 2700288 | Author: kaka | Hits:

CodeBus www.codebus.net