Hello , everyone ,who can provide me a classic mutilthreading program
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!!!
Re: Hello , everyone ,who can provide me a classic mutilthreading program
I just now found an article , and feel very good to me
the link is http://www.codeproject.com/threads/S...hreadNoMfc.asp
and can you guy give me other examples?
the easier the better!!!
Re: Hello , everyone ,who can provide me a classic mutilthreading program
Quote:
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!!!
哈哈。你还是先学学英语的好。
Re: Hello , everyone ,who can provide me a classic mutilthreading program
Quote:
Originally Posted by Entrant_phil
哈哈。你还是先学学英语的好。
你是谁啊?竟然鄙视我,气死我了,你觉得哪里有问题?我提的英语。
Re: Hello , everyone ,who can provide me a classic mutilthreading program
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).