delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "Christophe BARIBAUD" <cbaribau AT jnjfr DOT jnj DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: multithreading |
Date: | Thu, 7 Feb 2002 13:13:58 +0100 |
Organization: | CompuServe Interactive Services |
Lines: | 67 |
Message-ID: | <a3tr10$nqe$1@suaar1ab.prod.compuserve.com> |
References: | <29223 DOT 1013001521 AT www3 DOT gmx DOT net> |
NNTP-Posting-Host: | fra-tgn-oyc-vty39.as.wcom.net |
X-Trace: | suaar1ab.prod.compuserve.com 1013084000 24398 212.211.82.39 (7 Feb 2002 12:13:20 GMT) |
X-Complaints-To: | newsmaster AT compuserve DOT com |
NNTP-Posting-Date: | 7 Feb 2002 12:13:20 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
There are two versions of LWP, one works and the other don't... Be sure to use the good one : http://homepages.fh-giessen.de/~hg10836/stuff/jtlwp21s.zip It doesn't work under Windows 2000 because signals don't work under windows ;-( but if you don't use preemptive mode, it works fine. printf and sqrt and many other functions are not reentrant, so you need a mutex to use them... Regards "Paul Muehlbach" <traexx AT gmx DOT de> a écrit dans le message news: 29223 DOT 1013001521 AT www3 DOT gmx DOT net... > On Tue, 5 Feb 2002, Paul Muehlbach wrote: > > > I have the following problem: I need a multithreading library,found lwp > and > > if I want to use it it crashs with PAGEFAULT (the given examples to!). > > Nothing helps! It crashes after the start of the program. I use Win95 and > a > > FPU-Emulator. > > Please post here the full text of the crash message, after running SYMIFY > on it. > > I work with LWP 2.0: > > *********Program********* > > LWP: Example1. > This program spawns 4 threads that each print a message. > Press any key to start....MAIN > Exiting due to signal SIGSEGV > General Protection Fault at eip=00003fc5 > eax=00000000 ebx=00000021 ecx=00000000 edx=0000fe20 esi=00000006 > edi=00093b54 > ebp=00093b30 esp=00093b1c program=C:\THREAD\CONTRIB\LWP\EXAMPLE1.EXE > cs: sel=00a7 base=82954000 limit=000affff > ds: sel=00af base=82954000 limit=000affff > es: sel=00b7 base=82954000 limit=000affff > fs: sel=0087 base=0000fe20 limit=0000ffff > gs: sel=00bf base=00000000 limit=0010ffff > ss: sel=00af base=82954000 limit=000affff > App stack: [00095070..00015070] Exceptn stack: [00014fd0..00013090] > > Call frame traceback EIPs: > 0x00003fc5 __lwpasmEnd+149 > 0x00008def __write+159 > 0x0000f44a __flsbuf+298 > 0x0000e2b2 _putc+178 > 0x0000ac7b __doprnt+147 > 0x00005e16 _printf+22 > 0x00001fd2 _main+322, line 54 of example1.c > 0x00005a12 ___crt1_startup+178 > > C:\thread\CONTRIB\LWP>symify example1.exe > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |