| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Giving up slices |
On Thursday, 1994-10-20 Cory Hill wrote to All about "Giving up
slices" as follows:
CH> Does anyone have any source (preferably Pascal, but ASM or C that
CH> I can compile to an OBJ and link in Pascal is fine) to make a DOS
CH> application give up time slices under OS/2 2.1?
Hi Cory,
Try something like:
PROCEDURE YieldTimeSlice;
VAR regs : REGLIST;
BEGIN
regs.AX = #1680;
intrp(#2F,regs,regs)
END;
Note that I am assuming you are using IBM Pascal/2 to prepare a DOS
application. I am, perhaps, unique among the Pascal programmers in
this echo in that I do not own a copy of Borland or Turbo Pascal, so I
do not know if this will work with a Borland compiler or not. [Fact
is, I wrote this code just now, so I am not absolutely certain it will
work at all. ... :-) ]
You might also need a TSR like SLICE or TAME to answer the interrupt
in a VDM.
Also, I am not sure whether this question belongs in this echo or the
OS2DOS echo.
Regards
Dave
* KWQ/2 1.2g * PL/I: Understatement is the purest form of eloquence.
--- Maximus/2 2.01wb
* Origin: OS/2 Shareware BBS, Fairfax, VA: 703-385-4325 (1:109/347)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 109/347 2 7 3615/50 229/2 12/2442 711/409 54/54 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™.