Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Ritesh Dubal
Agenda for Day 3
1. Multitasking
This feature of operating system allows more than one task to be executed
concurrently. CICS schedules the task in its own region.
2. Multithreading
This feature of the operating system allows more than one task to be
executed concurrently sharing the same program. Multithreading is
a subset of Multitasking.
CICS Restrictions
Re-entrancy
A Re-entrant program is one which does not modify itself and can
Quasi-reentrancy
environment.
What is a Conversation?
2. Conversational Program
(i) Technique 1
(ii) Technique 2
(iii)Technique 3
Non Conversational Program
2. The system waits for the user input. The time that the user takes to
acknowledge is called the Think Time. This time is considerably
high and hence is identified as a major draw back.
4. The system processes the user’s input and sends the output.
Note: In this case the program is loaded into main storage when required
and released when not in use.
Returning Program Control
The control can be transferred back to the main program
using the RETURN command in either of the following
ways.
FORMAT 2 FORMAT 3
Pseudo-conversation programs
Techniques of Pseudo Conversation
Technique 1. Multiple programs and Multiple transactions.
1. LINK 2. XCTL
Note: The control is expected back. Note: The control is not expected back.
Logic Levels
Pgm 1
LINK Pgm 2
Logic Level 1
RETURN
Pgm 2 Pgm 3
XCTL Pgm 3 LINK Pgm 4 Logic Level 2
RETURN
Pgm 4
LINK Pgm 4 Logic Level 3
RETURN
LINK Vs. XCTL
XCTL
LINK
1. Transfers the control to a
1. Transfers the control to a
program that is at the same
program that is one logical
logical level.
level down.
2. Doesn’t expects the control
2. Expects the control back
back from the XCTLed
from the LINKed Program.
Program.
3. Since control is expected
3. Since control is not expected
back, more over-head to
back, less over-head to the
the system.
system.
4. The HANDLE conditions
4. The HANDLE conditions
are available to the LINKed
are available to the LINKed
programs.
programs.
5. LINKed program can not
5. XCTLed program can be
be Pseudo-conversational.
Pseudo-conversational.
LINK Vs. XCTL
CALL LINK/XCTL
1. Linkedited along with the main
module. 1. Separately compiled and link
edited.
2. Static Loading and hence faster
execution time, but requires 2. Dynamic loading and hence
more memory. slows down the execution speed.
3. Single copy can not be used. 3. Single copy be shared.
4. Any changes in this require
compiling of all other modules 4. Changes in this will not effect
using this. other modules using this.
END-EXEC
where WS-TIME has PIC X(8) and WS-DATE has PIC X(8).