delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/22/15:25:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F96D94E.5020205@gmx.net>
Date: Wed, 22 Oct 2003 21:23:58 +0200
From: Thomas Pfaff <tpfaff AT gmx DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Arash Partow <arashp AT hotmail DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Serious problem with win32 pthreads crashing and c++ class
References: <BAY9-F4AphwFutJLtos000058ab AT hotmail DOT com>
In-Reply-To: <BAY9-F4AphwFutJLtos000058ab@hotmail.com>

Arash Partow wrote:
> The prototype initially creates 700 threads all of which are contained in a
> vector (threadList), each thread does some "simple" string processing
> (basically tokenize a string) and then exists. On completion of the thread,
> the thread sets its own state in the thread-class to dead.
> 
> Another thread called GarbageCollector, which is created before the other
> threads are created, is continually traversing the threadList, looking for
> dead threads, once a dead thread is found, it deletes the pointer pointing
> to the thread class in the list, creates a new thread and adds it to the
> end of the list. Hence continually maintaining the number of threads being
> run at any one time, (hopefully)
> 

Hi Arash,

i can confirm that this is a bug in cygwin.
I will apply my changes when your testcase runs successfull over night, 
therefore this should be fixed one of the next snapshots.

Thanks for your stress test.

Thomas


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019