🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38253

Re: Nap call. Was Re: X386 1.2 and X11R5 on SCO

#38253
From: pgd
Date: Mon, 13 Jan 1992 07:17
20 lines
1664 bytes
Steven W Orr (steveo@world.std.com) writes:
: Regarding the nap call from -lx, can someone tell me how it works? Is
: it a busy wait or is there something actually useful there that
: suspends the program? and don't forget everyone. IF YOU USE -lx MAKE
: SURE YOU USE IT IN THE FORM OF -lc -lx so that everything that needs
: to be satisfied from -lc is loaded from there first! Unless of course
: you want to cross link a binary for a Xenix platform...  

In Xenix it essentially does a:
 
	timeout(wakeup, &u.u_procp->p_wchan,naptime);
	sleep(&u.u_procp->p_wchan, 0x28);

Which means that the process is actually suspended, to be rescheduled
after the indicated time. I don't know about SCO Unix, but if I would
bet on it, I would bet on that it is doing the same as on SCO xenix.
-- 
Per Lindqvist

Internet: pgd@compuram.bbt.se   Fidonet: Per Lindqvist @ 2:201/332
Technical Details
Message-ID: <1992Jan13.071758.6840@compuram.bbt.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!unido!mcsun!news.funet.fi!sunic!seunet!kullmar!compuram!pgd
References: <BHxB8n.I0y@world.std.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 134180,7664f740ba377765
X-Google-Attributes: gid134180,public
X-Google-Thread: 1048e3,7664f740ba377765
X-Google-Attributes: gid1048e3,public
X-Google-Thread: 103734,7664f740ba377765
X-Google-Attributes: gid103734,public
X-Google-ArrivalTime: 1992-01-13 04:10:17 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!unido!mcsun!news.funet.fi!sunic!seunet!kullmar!compuram!pgd
From: pgd@compuram.bbt.se
Newsgroups: comp.windows.x,comp.unix.sysv386,biz.sco.opendesktop
Subject: Re: Nap call. Was Re: X386 1.2 and X11R5 on SCO
Message-ID: <1992Jan13.071758.6840@compuram.bbt.se>
Date: 13 Jan 92 07:17:58 GMT
References: <BHxB8n.I0y@world.std.com>
Lines: 20