Professional Documents
Culture Documents
INTRODUCTION
INTRODUCTION
WHY MAINFRAMES?
CATEGORIES OF PROGRAMMING
Mainframes
1
mvs
WHY MAINFRAMES?
MVS Evolution
OS/MVT
2
mvs
• Time sharing
• Program development
• Virtual storage concept
• Multiprogramming, Spooling, time sharing and batch processing
• Addressing capacity
• Supports bimodal processing
OS/390
Prior to OS/390, the System/390 world consisted of tons of different products that had to be
ordered, installed and maintained separately. The products were updated in different release
cycles.
The OS/390 system builds on the strengths of MVS/ESA and provides a complete network-
ready server environment.
Hardware
INPUT/OUTPUT
• Control units
• Devices: DASD, tape, printer
Communication Subsystem
• Communication controllers
• Cluster controllers
• Terminals
• Multiplxess, modems
SOFTWARE
3
mvs
CATEGORIES OF PROGRAMMING
• Batch programming
• Interactive programming
Batch Programming
• Accepts data for processing in groups called batches and produces o/p grouped into
sets.
• Do not communicate with any user as they execute
• Once started, supervised by the computer's OS
Interactive programming
System Management
Resources Management
Memory management
• Allocation of memory
4
mvs
• De allocation of memory
• Fragmentation and garbage collection
• Paging and segmentation.
File Management
• CREATE
• DELETE
• COPY
• MERGE
• VIEW
• ADD
• EDIT
• PRINT
• OPEN
• CLOSE
System Overview
5
mvs
CONCEPT OF MAINFRAME
CPC
UNIPROCESSOR
MULTIPROCESSING
MULTIPROGRAMMING
CENTRAL STORAGE
VIRTUAL STORAGE
PAGING
THRESHOLD QUEUES
PAGE STEALING
PAGE OUT
PAGE FAULT
PAGE IN
SWAPPING
SWAP OUT
6
mvs
ADDRESS SPACE
CPC
The Central Processor Complex (CPC) consists of the central processor and channel
subsystems and the storage as the hardware and the system application programs, user
programs and other tools as the software. The primary program executing on the system is
the Operating System (OS).
UNIPROCESSOR
The CPC processing only one instruction at a time is called uniprocessor system. The OS
manages the instructions to be performed and the resources required by the program. Thus
having only a single copy of the OS operating system running under single processor is called
a uniprocessor. Though it is simple, no backups can be taken in case of system failure.
MULTIPROCESSING
Under one operating system multiple processors can be connected so that simultaneous
processes take place, the processors share the central storage and I/O configuration.
7
mvs
MULTIPROGRAMMING
With multi programming, multiple programs have to reside in the central storage. When one
program is waiting for I/O operation to complete, the system can interrupt that program, store
the information about the program so that the next ready to Execute program gets executed.
Once the I/O operation is over, the interrupted Program gets executed from the point it got
interrupted.
CENTRAL STORAGE
The processor storage where the instruction and data it references must reside, for the
instruction to be processed is called the central storage. It is divided in to separate areas
called the frames of 4K bytes and each area is identified by a unique address space. Faster
access and better performance but the available central storage is very limited.
VIRTUAL STORAGE
8
mvs
Virtual storage is the range of addresses available for the users, where the programs that have
capacity, more than the central storage can reside. It is divided in to equal areas of 4K called
PAGES.
The SVS (Single Virtual Storage) is the first virtual storage that was available to the users. For
24 bit addressing 16 Mega byte addresses is available.
The MVS (Multiple Virtual Storage) was introduced, where each user was given a 16 Mega byte
address space.
PAGING
9
mvs
At the time of execution the pages from the virtual storage is transferred to the central
storage frame and the inactive pages from central storage frame is put back to the Auxiliary
storage slot or Expanded storage frame. This process of moving the pages into and out of
central storage is called Paging.
THRESHOLD QUEUES
The central storage maintains a queue of frames in order to ensure that a frame is available at
the time of allocation. Hence a threshold of frames are reserved for the purpose. When the
actually available frames falls below this number, page stealing takes place and when it goes
above the threshold the stealing is stopped.
PAGE STEALING
It is the process of monitoring the central storage periodically and placing the least recently
used page in the available frame queue. The SRM (System Resource Manager) checks the
reference bit and maintains a record of how long a page has not been referenced and sets the
reference bit to OFF after a certain amount of time. Theses least recently used frames are
more prone to be stolen. When a frame with change bit is ON, then it should be saved.
PAGE OUT
10
mvs
The least referenced pages are thus sent to the expanded storage or auxiliary storage in order
to maintain the threshold value of available frame queue. This process of transferring the page
from the central storage is called the Page Out.
PAGE FAULT
When a page is stolen its entry in the page table is marked invalid. A page fault occurs when
DAT tries to convert a virtual address to real address to reference the stolen page.
PAGE IN
When a page fault occurs, an available central storage frame is allocated for the requested
page and DAT has the capability to bring the page to the central storage from the expanded
storage or the auxiliary storage.
SWAPPING
Swapping is the movement of address spaces from and to the central storage depending on the
current load on the system.
11
mvs
SWAP OUT
Swap out is the movement of the address space from the central storage to the expanded
storage or auxiliary storage. If a user is waiting for input or output for a long duration then the
SRM (System Resource Manager) takes out the address space from central storage frame.
ADDRESS SPACE
12