13.2.2 Multitasking Macros

Under VSE, when you specify asynchronous processing at system generation time, the multitasking group of macros is supported to permit more than one task to execute within each partition. Each subtask must be initiated by the main task: control then passes to the subtask.

The storage protection key and priority of the partition remain the same, but the priority of a task within a partition is determined by the sequence of subtasks it attached. Thus, if subtask 1 through subtask n are attached in ascending order, the priority of execution within the partition would be from subtask 1 to subtaskn, then to the main task.

Under MVS, asynchronous processing is supported. This dynamic parallel structure differs from VSE in that:

Subtasks may be created by job step tasks or other subtasks.

No absolute rules exist for assigning priorities to tasks and subtasks. When created, subtasks are assigned a priority by the originating task. Within limits, this priority may be higher, lower, or the same as the originating task.

Any time during execution, the originating task may modify the priority of an attached subtask (as long as it has the task control block (TCB) address of the subtask).

The VSE multitasking macros can be divided into three general categories:

Subtask initiation and normal termination macros ATTACH/DETACH.

Resource protection macros RCB/ENQ/DEQ.

Intertask communication macros WAITM/POST.

The MVS counterparts and their comparable features follow.

13.2.2.1 ATTACH/DETACH Macros

VSE

ATTACH

entrypoint(S,entrypoint)(r1)

 

 

,SAVE=savearea(S,savearea)(r2)

 

 

,ABSAVE=savearea1

 

 

 

 

(S,savearea)&vbar,(r3)

 

 

 

,ECB=ecbname(S,ecbname)(r4)

 

 

 

,MFG=area(S,area)(r5)

 

 

 

,RETURN=NOYES

 

 

 

 

,NAME=(name(S,name(r8))

 

 

 

 

 

 

MVS

ATTACH

EP=symbol

 

,DCB=dcb address

 

 

EPLOC=address of name

(2-12)

 

 

(2-12)

 

 

 

 

DE=address of list entry

 

 

 

(2-12)

 

 

 

 

,LPMOD=number

 

,DPMOD=number

 

 

(2-12)

 

(2-12)

 

 

,PARAM=(address

,...)

,VL=1

 

 

(2-12)

 

 

 

 

,ECB=ecb address

,ETXR=exit routine

 

 

(2-12)

 

(2-12)

 

 

 

 

 

Chapter 13. A s s e m b l e r 283

Page 307
Image 307
IBM OS/390 manual Multitasking Macros, ATTACH/DETACH Macros

OS/390 specifications

IBM OS/390, a versatile operating system, was a cornerstone in enterprise environments and played a pivotal role in mainframe computing. Released in the mid-1990s, OS/390 combined the strengths of IBM's MVS (Multiple Virtual Storage) with new features and enhancements, targeting scalability, reliability, and performance in demanding business applications.

One of the key features of OS/390 was its robust support for multiple users and processes. The system allowed thousands of concurrent users to access applications and data, ensuring high availability and minimizing downtime—a critical requirement for many large organizations. This scalability was supported through various enhancements in memory management and processor scheduling, enabling optimal resource allocation across diverse workloads.

OS/390 was known for its superior workload management capabilities. The Workload Manager (WLM) component allowed administrators to define service policies, specifying how system resources would be allocated according to the priority of tasks. This ensured that critical business processes received the necessary resources while less critical tasks were managed more flexibly.

Another significant characteristic of OS/390 was its commitment to security. The operating system provided comprehensive security features, including user authentication, data encryption, and auditing capabilities. This focus on security was vital for organizations handling sensitive data, ensuring compliance with regulations and safeguarding against unauthorized access.

OS/390 also supported advanced technologies that facilitated integration and development. The system included features like the IBM CICS (Customer Information Control System) for transaction processing and IMS (Information Management System) for database management. These technologies allowed organizations to build robust, high-performance applications tailored to specific business needs.

The ease of network integration was another strength of OS/390. With the advent of the Internet and global connectivity, OS/390 systems could easily interface with various network protocols, enabling businesses to operate in a connected world. This inclusion paved the way for many organizations to expand their capabilities and offer new services, driving digital transformation.

In conclusion, IBM OS/390 represented a significant advancement in mainframe technology, combining scalability, security, and robust workload management. Its rich feature set and support for critical enterprise applications solidified its role as a vital component of many organizations' IT infrastructures, ensuring they could meet their operational challenges head-on while supporting future growth. As technology continues to evolve, the legacy of OS/390 remains influential in the realm of computing.