Click to See Complete Forum and Search --> : Hello , everyone ,who can provide me a classic mutilthreading program


fyr000000@163.com
April 29th, 2006, 01:32 AM
I have to do my sniff program using mutithreading,
because one thread is getting the data bag,
another is writing into the disk.
I haven't used mutilthread, can sb. give me a short ,easy and classic
mutithreading program .
PS. I hope the program are not used by MFC .
Thank you , everybody!!!

fyr000000@163.com
April 29th, 2006, 04:32 AM
I just now found an article , and feel very good to me
the link is http://www.codeproject.com/threads/SynchronizedThreadNoMfc.asp
and can you guy give me other examples?
the easier the better!!!

Entrant_phil
May 2nd, 2006, 02:48 AM
I have to do my sniff program using mutithreading,
because one thread is getting the data bag,
another is writing into the disk.
I haven't used mutilthread, can sb. give me a short ,easy and classic
mutithreading program .
PS. I hope the program are not used by MFC .
Thank you , everybody!!!


哈哈。你还是先学学英语的好。

fyr000000@163.com
May 5th, 2006, 10:18 PM
哈哈。你还是先学学英语的好。
你是谁啊?竟然鄙视我,气死我了,你觉得哪里有问题?我提的英语。

Arjay
May 6th, 2006, 06:13 PM
fyr, see the links in my signature for a couple of cg articles. These articles talk about synchronization, the differences between sync primitives such as critical sections and mutexes and offer a couple of lightweight classes that help with synchronization. The articles have several sample applications most of which are not MFC. It should be noted that when MFC is used in the samples, it is only used to quickly develop the samples that use a UI; as the threading and the classes related to threading are orthogonal to MFC (just for u, Sid).