zOS Dispatcher

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Quasar Chunawala
Registered Member
Posts: 34
Joined: Sun Aug 11, 2013 4:48 pm
Location: Pune

zOS Dispatcher

Post by Quasar Chunawala »

I was just doing some general reading on the Internet about the evolution of the z/OS dispatcher, SRM(now WLM) amongst other things. What I gather is, in the old MVS/370, there were just two CPUs. As one TCB or SRB would access resources this would put the whole system in a WAIT mode. The dispatcher would keep looping and wait for the lock to open - Spinlocksis the term for it, I believe.

I have a bit of a lame question : wouldn't the TCB or SRB just access the reources that it needs? Not sure, why in the world would the whole system WAIT?
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: zOS Dispatcher

Post by Anuj Dhawan »

I had been looking for the online reference which might refer about "... put the whole system on WAIT" but was not successful. If possible, could you please share the document or a link.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Gerhard_Adam
Registered Member
Posts: 14
Joined: Thu Nov 26, 2015 10:51 am

Re: zOS Dispatcher

Post by Gerhard_Adam »

In a single CPU situation, then only one instruction stream can be processed at a time. So whatever that does will determine the behavior of the whole machine.

When there is more than one processor, the operating system provides a mechanism for serializing access to resources. This is required to ensure that more than one process doesn't attempt to update the same data at the same time. Therefore in the case of the dispatcher, the point is that technically the dispatcher code can be running simultaneously on more than one CPU. As a result, when critical fields are being updated, the Dispatch lock must be acquired. If another processor also wants this, then it will go into a spin-loop waiting fo the dispatch lock to be released.

This is NOT a wait condition, but is 100% CPU busy while this is occurring. It may appear like the system is "hung" because it may be disabled for interrupts.

I'm not sure about your statement regarding a TCB or SRB just accessing the resources that it needs. Once access to the CPU is granted, no one else can use it until the TCB or SRB ends or is interrupted. All computer systems operate in that fashion.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”