Claims
- 1. A method for asynchronously controlling data transfer between processing programs in a data processing system including (i) a plurality of receiver buffers in memory areas of the processing programs, each receive buffer holding received data to be used by a corresponding one of the processing programs, (ii) a transfer buffer connected with said processing programs such that data is transferred from a first processing program with data to send to said transfer buffer and from the transfer buffer to the receive buffer of a designated other processing program, and (iii) a counter means containing a count initially set to a number of receive buffers provided in each memory area for indicating availability of the receive buffers corresponding to each processing program to receive data, said method comprising the steps of:
- a) in response to one of the processing programs having data to send to a designated destination processing program, with the one data sending processing program accessing said counter means and reading the contained count indicative of the number of available receive buffers corresponding to the designated destination processing program,
- b) with the one data sending processing program, determining whether the at least one receive buffer corresponding to the designated destination processing program is available,
- c) in response to the at least one receive buffer corresponding to the designated destination processing program being indicated as available, transferring the data to be sent to the designated destination processing program from the one data sending processing program to said transfer buffer,
- d) transmitting the data stored in said transfer buffer from the transfer buffer to the at least one of the available receive buffers corresponding to the designated destination provessing program and decrementing said counter means each time one of the available receive buffer is occupied and,
- e) each time one of the receive buffers is released, incrementing the counter means.
- 2. A method for controlling data transfer according to claim 1 wherein said counter means has means for allowing an access commonly by said processing programs.
Priority Claims (1)
Number |
Date |
Country |
Kind |
61-125725 |
Jun 1986 |
JPX |
|
Parent Case Info
This is a continuation of application Ser. No. 055,181, filed May 28, 1987, now abandoned.
US Referenced Citations (6)
Foreign Referenced Citations (2)
Number |
Date |
Country |
0077008 |
Apr 1983 |
EPX |
0134115 |
Mar 1985 |
EPX |
Continuations (1)
|
Number |
Date |
Country |
Parent |
55181 |
May 1987 |
|