![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with pthreads | sery0ga | High Level Programming | 3 | 02-21-2007 10:40 AM |
| pthreads | zackz | HP-UX | 3 | 01-24-2007 02:03 AM |
| pthreads | Esaia | High Level Programming | 2 | 06-04-2003 06:32 PM |
| pthreads | fishman2001 | High Level Programming | 6 | 06-25-2002 05:01 AM |
| PThreads | S.P.Prasad | UNIX for Advanced & Expert Users | 3 | 06-06-2002 11:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
PThreads
I have created a thread program, it is attached. My problem is that I need to loop this program multiple times, and basically reset everything including the threads created previously. I try to loop the program, the first run is fine, as always, but the second run of the program, the initialize function gets called but everything else is skipped. On the third (and last) run of the program, the creation of the thread finally executes, but this time, the initalization process is ignored. I say that the third is the last because no matter how many times I try to loop it, the program gets stuck on the third run. My question is: are the threads having a confilct? Also, am I cancelling the threads correctly? Is running the program multiple times, with each time generating new threads and executing the rest of the program properly, possible? Thanks in advance.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|