24.12.2013 Views

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

TOPS-10 Monitor Calls Manual Volume 2 AA-K039D ... - Trailing-Edge

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SLEEP [CALLI 31]<br />

22.158 SLEEP [CALLI 31]<br />

FUNCTION<br />

Causes your program to become dormant for a specified number of<br />

real-time seconds.<br />

CALLING SEQUENCE<br />

MOVE I<br />

SLEEP<br />

return<br />

ac,seconds<br />

ac,<br />

In the calling sequence, the program supplies the seconds, which gives<br />

the number of seconds that the job is to sleep. If you give seconds<br />

as 0, the program will sleep for one clock tick. The maximum sleep<br />

time is 68 seconds (or 82 seconds for systems using 50 Hz frequency) .<br />

If you require a longer sleep period, use the HIBER monitor call.<br />

RETURN<br />

Your job becomes dormant and the monitor sets the JBTST2 bit, JS.SLP.<br />

The monitor will clear this bit when the specified time has elapsed<br />

and your job becomes runnable again. All potential job-wakers should<br />

check this bit and wake a job only if the bit is cleared.<br />

EXAMPLES<br />

MOVE I<br />

SLEEP<br />

T1,1<br />

T1,<br />

This code puts your job to sleep for 1 second.<br />

RELATED CALLS<br />

HIBER<br />

22-399

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!