| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Timeslices |
Hello Timo!
Sunday December 24 1995 04:49, Timo Sirainen wrote to All:
TS> Can I give timeslices to OS/2 in OS/2 prog? Or how should I do this
TS> kind of program:
TS> repeat
TS> if keypressed then
TS> begin
TS> c:=readkey;
TS> {...}
TS> end else
TS> begin
TS> give_timeslice; { Any way to do this in OS/2 prog? }
Just add a call to DosSleep(1) here. Hope it will be enough. But you have
better create a thread to read the keyboard input that blocks itself if no keys
available.
TS> end;
TS> until quit;
Bye!
Rinat Sadretdinow
--- GoldED/2 2.50.A0715+
* Origin: --== Thunder Bird Mail Station ==-- (2:5020/620)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515 SEEN-BY: 712/517 628 713/888 800/1 7877/2809 @PATH: 5020/620 509 35 400 464/200 31 72 34 5100/8 396/1 270/101 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.