Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!samsung!think!mintaka!yale!cs.yale.edu From: Duchier-Denys@cs.yale.edu (Denys Duchier) Newsgroups: comp.lang.lisp Subject: Re: Lisp - C problem Keywords: sleep Message-ID: <10530@cs.yale.edu> Date: 7 Jan 90 19:43:39 GMT References: <1026@prlhp1.prl.philips.co.uk> Sender: news@cs.yale.edu Reply-To: Duchier-Denys@cs.yale.edu (Denys Duchier) Organization: Computer Science, Yale University, New Haven, CT 06520-2158 Lines: 21 In-reply-to: walker@prlhp1.prl.philips.co.uk (David Walker) In article <1026@prlhp1.prl.philips.co.uk>, walker@prlhp1 (David Walker) writes: > > I'm running Sun Common Lisp 3.0.1 on mu Sparcstation and linking in code > written in C. One of my c functions calls the sleep subroutine, but the call > to sleep results in no process suspention. i.e. A sleep(5); call returns > immediately. Has anybody experienced the same problem and found a solution? > > Thanks for any help, > david walker > > davidw@prl.philips.co.uk Lucid 3.0 has a multitasking facility. My guess is that they need a timer to schedule processes. Perhaps your call is interfering with that other function (see manual page for sleep). Try setting the timer directly (but make sure to reset it to what it was before), or maybe do: sleep(0); sleep(5); This is just guesswork and may have nothing to do with what is actually going on. --Denys