🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38255

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

#38255
From: Larry Philps
Date: Mon, 13 Jan 1992 14:01
36 lines
2388 bytes
In <BHxB8n.I0y@world.std.com> steveo@world.std.com (Steven W Orr) writes:

> In article <1992Jan12.160923.3432@mnemosyne.cs.du.edu> trussell@isis.cs.du.edu (Tim Russell) writes:
> >trevor@trevan.uucp writes:
> >
> >>2) The new PEX code uses itimer which does not seem exist on SCO.
> >
> >    Nope..  Although my understanding is that 3.2v4 will have itimer support
> >in it, which is, I know, small consolation for the here and now.  I'm really
> >not familiar with how involved itimer() is, but if it's just a simple wait,
> >SCO does have a nap() call that you might want to look into.
> >
> >--
> >   Tim Russell               Omaha, NE           trussell@isis.cs.du.edu
> 
> 
> 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?

The nap call is like sleep except that it takes an argument in
milliseconds instead of seconds.  Setitimer is like alarm, except that
it takes a timeval structure (microsecond resolution) instead if
seconds.  Unfortunately for you nap and setitimer have different
semantics so nap cannot take setitimer's place.

What is the length of time that setitimer is being called with?  If it
is in the second range, your best bet would just be to call
alarm(nseconds).

---
Larry Philps,	 SCO Canada, Inc.
Postman:  130 Bloor St. West, 10th floor, Toronto, Ontario.  M5S 1N5
InterNet: larryp@sco.COM  or larryp%scocan@uunet.uu.net
UUCP:	  {uunet,utcsri,sco}!scocan!larryp
Phone:	  (416) 922-1937
Technical Details
Message-ID: <1992Jan13.140147.15500@sco.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!sco!scocan!larryp
References: <1992Jan12.121737.14962@trevan.uucp> <1992Jan12.160923.3432@mnemosyne.cs.du.edu> <BHxB8n.I0y@world.std.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103734,7664f740ba377765
X-Google-Attributes: gid103734,public
X-Google-Thread: 134180,7664f740ba377765
X-Google-Attributes: gid134180,public
X-Google-Thread: 1048e3,7664f740ba377765
X-Google-Attributes: gid1048e3,public
X-Google-ArrivalTime: 1992-01-13 17:24:13 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!sco!scocan!larryp
From: larryp@sco.COM (Larry Philps)
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.140147.15500@sco.COM>
Date: Mon, 13 Jan 92 14:01:47 GMT
References: <1992Jan12.121737.14962@trevan.uucp> <1992Jan12.160923.3432@mnemosyne.cs.du.edu> <BHxB8n.I0y@world.std.com>
Sender: news@sco.COM (News administration)
Organization: SCO Canada, Inc.
Lines: 36