Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
please answer it i dont have any idea about multi threading in c

this is given to me with a deadline pleaseee help me!
Posted
Comments
Mehdi Gholam 22-Nov-14 0:18am    
Looks like homework.
[no name] 22-Nov-14 0:19am    
nope im a trainee in a company but i dont know till now there is multi threading in c..
please help me bro .. if u know
Mehdi Gholam 22-Nov-14 0:27am    
Ask your supervisor.
[no name] 22-Nov-14 0:36am    
share with me anything u know aboout it sir!
Mehdi Gholam 22-Nov-14 0:40am    
Everything you ever want to know is at http://www.Google.com

Multithreading does not exist in C, it is part of the operating system. So, to answer this question you need first to explain which operating system you are working on for this program. And you could easily do some basic research for yourself by typing: https://www.google.com/search?q=multithread+c[^] in your browser.
 
Share this answer
 
You should have learn multithreading at school...

As someone has already mentionned, you should never want to kill threads. You have to signal threads somehow to cancel there processing and then wait until eah thread returns.

By the way, if you don't know the basic of multithreading, then you should search some tutorials. Here are some possibilities:

http://codebase.eu/tutorial/posix-threads-c/[^]
Multithreading Tutorial[^]
http://msdn.microsoft.com/en-us/library/y6h8hye8.aspx[^]
http://stackoverflow.com/questions/3402916/basic-multi-threading-in-c-c-hints-advice-tutorial-some-direction[^]
http://www.bogotobogo.com/cplusplus/multithreading_win32A.php[^]
http://timmurphy.org/2010/05/04/pthreads-in-c-a-minimal-working-example/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900