i dont have i dea about multithreading in c... please help me
Implement Multi Threading in C & kill the remaining Threads when you come out of any
Collapse
X
-
Tags: None
-
There are two issues: thread management (which is OS dependent); and writing thread-safe code.
Thread-safe code. To begin with, try to use only automatic and dynamically-allocated variables - avoid static/global variables. The topic is quite a bit more complicated but this is a good first step. -
What OS are you using?
If it's Windows, get a copy of Windows via C/C++ and read the chapter on multi threading.
Once you have done that, post again and I will provide some sample Windows code.Comment
Comment