delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/17/21:27:13

From: Tuukka Kalliokoski <tuukka DOT kalliokoski AT koti DOT tpo DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems with LWP 2.0 / djgpp 2.03
Date: Sun, 17 Dec 2000 21:39:11 +0200
Organization: Tampere Telephone Plc
Lines: 35
Message-ID: <8i5q3t4nrnb5rig81irlasimit6qrv1pk1@4ax.com>
References: <bg0q3t401q1enh09c6rssnieolj6f1o2ru AT 4ax DOT com> <9003-Sun17Dec2000211936+0200-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: ip5-134.dial.tpo.fi
Mime-Version: 1.0
X-Trace: news.koti.tpo.fi 977081967 28736 212.246.193.134 (17 Dec 2000 19:39:27 GMT)
X-Complaints-To: abuse AT tpo DOT fi
NNTP-Posting-Date: 17 Dec 2000 19:39:27 GMT
X-Newsreader: Forte Agent 1.8/32.548
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 17 Dec 2000 21:19:37 +0200, "Eli Zaretskii"
<eliz AT is DOT elta DOT co DOT il> wrote:

>The DJGPP port of LWP is mentioned in section 22.4 of the DJGPP FAQ
>list.  Are you using a ported version?  If not, it's quite possible
>that the code you are using isn't supposed to work with DJGPP.

Hi and thanks for replying ! The version of LWP is indeed meant
to be used with djgpp. And specifically told to work with Win95
(and W98, I guess).

>What does the program do in each thread?  Due to the way signals are
>implemented in DJGPP, some activities, such as DOS function calls,
>stop threading until the DOS call returns.

The threads just print their PID number and delay a while (by
busyloop).
Printing with printf is handled with semaphore, so that there should
be no re-entrancy problems. No other library or DOS functions are
called.

>Ouch, Windows.  I'd suggest to try in DOS mode first, with CWSDPMI.
>Windows has some nasty tricks as far as timer interrupt is concerned

Works even worse in DOS - the SIGSEGV hits immediately.

I think that maybe the stack frame set up by SIGILL (which the
LWP uses as scheduling interrupt) is set up differently in the
current djgpp version than in the one LWP was tested with. Too bad
I can't find any newer version of LWP. Maybe I should start looking
for some other threading package.

br
Tuukka

- Raw text -


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