-----------------------------<snip>----------------------------------

Hi,

The WTOR generates a SVC 35 ....


   In a multitask environment this would cause the dispatcher to give control 
to another
task while waiting for a operator reply

 Is there some way of making sure that the dispatcher doesn't give up control 
of the task
that issued the WTOR and wait for a reply
----------------------------------<unsnip>--------------------------------
Michael, your understanding is a bit faulty. The SVC-35 operates under your TCB and doesn't enter the dispatcher at all.

Other things besides your SVC-35 may cause the dispatcher to get involved, such as a I/O interrupt, operator commands, etc. Whether you get to the dispatcher or not is dependant on factors both within and outside of your program. Why is this a concern? Trying to defeat the multitasking features of the operating system is inappropriate and could be very costly, in terms of resource expenditure and overall performance.

There's a reason that WTOR requires an ECB: so that you can be notified when the operator response has been received. When you WAIT on that ECB, control will go to the dispatcher, but not until then. And the ECB will get POSTed only when the operator deigns to reply.

Give us more background, including programming language, so we can better help you to devise an effective solution to the issue(s) you're trying to solve.

Rick

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to