Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [203.94.167.77] X-Originating-Email: [arashp AT hotmail DOT com] X-Sender: arashp AT hotmail DOT com From: "Arash Partow" To: cygwin AT cygwin DOT com Subject: Re: Problem with pthreads and signaling, behavior broken... Date: Tue, 09 Dec 2003 23:05:33 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 09 Dec 2003 23:05:33.0488 (UTC) FILETIME=[F2DD5300:01C3BEA8] Hi Marcus, I asked chris the same questions yesterday, i wondered why he felt he need to change the code in order for it to work with cygwin. Its a shame though cause i see as time goes by and CPUs become better adapted to thread processing that people will write new utilities and maybe even begin to rewrite old utilities to utilize threads, rather than processes. processes have a huge over-head compared to threads, and require separate layers like pipes (not saying they are a bad thing) to be implemented in order for internal processes to communicate with each other. I digress. In any case we've high-lighted a possible issue and provided a scenario in which it can be deterministically replicated. My theory is once the signal has been fired and caught then passes the CP back to the application, the resuming of the application thread and the other running threads do not recommence as they should. i just hope cgf would post the exe he has built from the original ThreadTest source code and maybe even the cygwin1.dll he is using if its not the exact same one as of 8th dec in order for us to see the same results he has seen and be satisfied like him, that the problem has been adequately resolved. Regards Arash >> >>chris, >> >> >>i tried the code you provided, it does resolve the issue, however why do >>we need to change the test? as arash pointed out it seems to work on other >>platforms well enough. the modified version arash posted back seems to >>demonstrate the problem, and all it seems he has done get rid of delays >>and modify a couple for-loop arguments, for which i think should not have >>been changed from the original in the first place. >> >> >> >>marcus >> _________________________________________________________________ Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp -- 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/