Eligible
In the z/OS environment, "eligible" describes a unit of work (such as a Task Control Block (TCB) or Service Request Block (SRB)) or a resource that is ready to be processed or selected by the system. It signifies that all preconditions, required resources, and dependencies for execution or allocation are currently met, making it a candidate for dispatching or use.
Key Characteristics
-
- Ready State: An eligible unit of work is in a
readystate, meaning it is not waiting for an I/O operation to complete, a lock to be released, or an event to be posted. - Resource Availability: For a unit of work to be eligible, the necessary system resources (e.g., CPU, available memory, access to required datasets) must be conceptually available, even if not yet physically allocated.
- Dispatchability Prerequisite: Eligibility is a prerequisite for
dispatchability. An eligible task is placed on aready queueand can be selected by the z/OS dispatcher based on its priority and Workload Manager (WLM) service class goals. - Contrasted with Waiting/Blocked: Unlike a
waitingorblockedtask, an eligible task has no outstanding conditions preventing its immediate execution if a CPU becomes available. - WLM Interaction: Workload Manager (WLM) continuously evaluates the eligibility of work based on defined service goals and resource availability, influencing its priority for dispatching.
- Ready State: An eligible unit of work is in a
Use Cases
-
- Task Dispatching: A
TCBorSRBbecomes eligible when it has completed an I/O wait or an event has beenPOSTed, making it a candidate for CPU allocation by the z/OS dispatcher. - Workload Manager (WLM) Processing: WLM continuously assesses the eligibility of work within various
service classesto determine which work should receive CPU cycles to meet its defined performance goals. - Resource Selection: In scenarios like
JES2job selection, jobs might become eligible for execution by an initiator once all their resource requirements (e.g., specific tape drives, required datasets) are met or available. - Device Allocation: A storage device, communication line, or specific
VSAMfile might be considered eligible for allocation to a task or application once it is free and operational.
- Task Dispatching: A
Related Concepts
Eligibility is a fundamental concept closely tied to dispatching, Workload Manager (WLM), and the ready queue. An eligible task is one that WLM has determined is a candidate for execution, placing it on the ready queue. The z/OS dispatcher then selects the highest-priority eligible task from this queue to assign to an available CPU. It contrasts with tasks that are waiting (e.g., for I/O completion) or blocked (e.g., holding an ENQ lock), which are not eligible for dispatching.
- Monitor Resource Contention: Regularly monitor system metrics (e.g., CPU utilization, I/O queue lengths, enqueue contention) using tools like
RMForSMFto identify bottlenecks that prevent work from becoming eligible or being dispatched promptly. - Optimize WLM Policies: Configure
WLM service classesandresource groupseffectively to ensure critical work receives appropriate eligibility and dispatching priority to meet its performance goals. - Design Efficient Applications: Develop COBOL or assembler programs that minimize unnecessary waits, release locks promptly, and perform I/O efficiently to maximize the eligibility periods of their associated tasks.
- Understand Dispatching Priorities: Be aware of the
dispatching prioritiesassigned by WLM and how they influence which eligible tasks get CPU time, especially during peak workloads. - Analyze Wait States: Utilize system monitoring tools to analyze
wait statesand identify why tasks are not becoming eligible, which can point to application inefficiencies, resource shortages, or system configuration issues.