Вы находитесь на странице: 1из 2

Goodafternoon everyone, Im Heinz Brucal and today i will be discussing with you all

about multithread.

First of all what is a thread?


- read.
In t24 the threads i defined are called Agents.

With multiple threads, there are two or more paths of execution

When using a multithread multiple tasks can be done and the routine will not
wait for a task to finish but will find another task to process.

There are 4 components to a Multi-Threaded routine, the programming part is very


much the same as for single threaded routines

1. The common variable file, where you create the variables which need to be passed
in between sub-routines
2. The Load routine which loads the common variables as I_COMMON, I_EQUATE, etc. as
well as the Common variable file you've created
3. The Select routine which selects the records to be processed, the difference
here agains single threading is that the result of the select statement which is an
array will be written into a List file

CALL EB.READLIST (the select command,variable name holding the resulting selected
records,etc........)
CALL BATCH.BUILD.LIST('',variable name)

4. The processing routine which will pick up the selected records from the list
file for processing. Unlike single threaded routines you need to pass the name of
the list file in the routine

SUBROUTINE xxxxxxxx (list file name)Please note that this is the ID passed from the
JOB.LIST.<n> file to the sessions by BATCH.JOB.CONTROL.
Please note as well that this variable should never be declared as a common
variable, since the content needs to be lost after the termination of the routine.

That's it apart from the PGM.FILE entry, etc. Please note that only the processing
routine needs to be added to PGM.FILE

The term multithreading means that your task will be firstly initiated with
"SELECT" routine which will prepare the list of records to be processed and then
this list of records will be picked up one by one by several sessions running
called tSA Agents. As soon as the record is processed, its ID is removed from the
job list file (F.JOB.LIST.N where N = any number specified by system)

This is what makes multithreading technically faster than single threading.

There are two offices that both have 100 pages of work to do. One page can only be
done by one employee at a time within 1minute. The first office has only 10
employee and the second office has 05 employees. Both offices start work at 8:00am.
The first office processes one page at a time, but the second office processes 5
different pages at a time. The first office will finish after 1hour and 40 minutes
while the second office will finish in 20 minutes.
Its much faster considering they both have the same workload, they only differ from
the number of processors at a given time. Similar to single thread and multithread.

SR
BRD - approval and sign off
TSD - approval and sign off
FSD - approval and sign off
DEV
Unit testing - test script
deploy SIT
Unit test SIT - test script
deploy UAT
Test script to user if dev satisfied requirements.
UAF sign off
deploy PROD
let user know

SR
Initial Investigation

Fajardo, Jr., Vicente P.


Head - Mortgage Sales for Store Channel

FUNDS.TRANSFER,CORR/I/PROCESS,EABS66314/L3@gUE156/PH0022416,,TRANSACTION.TYPE=AC,DE
BIT.ACCT.NO=PHP1470000012416,DEBIT.CURRENCY=PHP,DEBIT.AMOUNT=3000000,DEBIT.VALUE.DA
TE=20170313,DEBIT.THEIR.REF=200008204763,CREDIT.ACCT.NO=PHP1290900012416,CREDIT.VAL
UE.DATE=20170313,ORDERING.BANK=EWB

PHP1470000012416
PHP1290900012416

PACK ID : LOCAL LOAN DATA FIX 2017-124


PACK NAME: EWBC001-TEM.528184.052616.1
DESCRIPTION : Authorize exception activities and triggers close arrangement
activities.
PATH FOLDER: \\ewbfilesvrm01\DEV_FOLDERS\SDD2\Loans\LOCAL LOAN DATA FIX 2017-124
NATURE: FIX FOR INCIDENT
INITIATED BY/ORIGIN OF REQUEST: Ebora, Leovelino D.
EXPECTED RESULT: Movement of balances

Вам также может понравиться