code in code::block |
Threads Program using c on linux/fedora Posted: 28 Dec 2012 04:15 AM PST <!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } This program creates a single extra thread, shows that it is sharing variables with the original thread, and gets the new thread to return a result to the original thread. Multithreaded programs don't get much simpler than this. Lets look the function which create the thread. pthread_create creates a new thread,much as fork |
You are subscribed to email updates from Code in code::blocks To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Post a Comment