The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-08-2005
justgotthis justgotthis is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 1
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.
Attached Files
File Type: txt threads.txt (12.8 KB, 26 views)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0