Modernization Hub

Eligible

Enhanced Definition

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 ready state, 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 a ready queue and 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 waiting or blocked task, 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.

Use Cases

    • Task Dispatching: A TCB or SRB becomes eligible when it has completed an I/O wait or an event has been POSTed, 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 classes to determine which work should receive CPU cycles to meet its defined performance goals.
    • Resource Selection: In scenarios like JES2 job 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 VSAM file might be considered eligible for allocation to a task or application once it is free and operational.

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.

Best Practices:
  • Monitor Resource Contention: Regularly monitor system metrics (e.g., CPU utilization, I/O queue lengths, enqueue contention) using tools like RMF or SMF to identify bottlenecks that prevent work from becoming eligible or being dispatched promptly.
  • Optimize WLM Policies: Configure WLM service classes and resource groups effectively 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 priorities assigned 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 states and identify why tasks are not becoming eligible, which can point to application inefficiencies, resource shortages, or system configuration issues.

Related Vendors

IBM

646 products

Trax Softworks

3 products

Related Categories

Operating System

154 products

Browse and Edit

64 products