home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umbadiu0
- From: umbadiu0@ccu.umanitoba.ca (Ted Babiuk)
- Subject: Simple C question
- Message-ID: <C02JCH.pC@ccu.umanitoba.ca>
- Keywords: PLEASE RESPOND ASAP ;) (vaction almost over....:) )
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Wed, 30 Dec 1992 10:48:17 GMT
- Lines: 35
-
-
- Ok....I'm using Lattice/SAS C 5.10 and have done the following...
-
- A have a main program which creates a child task using createtask()....
-
- The child task runs TO FASSST! (its a color cycling routine....)
-
- I've tried using a Delay(x) or wait(x) function to slow it down and make
- it delay/wait...but this either stops the task entirely (no cycling
- occures?...strange.....with Delay(10) i believe....) or crashes the
- system....:(...
-
- I've been able to do it with a loop as follows:
-
- for (count=0;count<8000;count++);
- ......
- cycle colors....etc.
-
-
- BUT this takes processor time.....
-
- I could use the timer.device to do a timed wait but...
-
- there must be an easier way.....
-
- is there something simular to a sleep() command which puts a task to sleep
- for 'x' ticks? (and uses little/no cpu time?)
-
- Thanks in advance,
-
- Ted Badiuk
- umbadiu0@ccu.umanitoba.ca
-
- No sig.....Band width friendly.....:)
-
-