KR930007981B1 - Mail box communication method - Google Patents
Mail box communication method Download PDFInfo
- Publication number
- KR930007981B1 KR930007981B1 KR1019910008604A KR910008604A KR930007981B1 KR 930007981 B1 KR930007981 B1 KR 930007981B1 KR 1019910008604 A KR1019910008604 A KR 1019910008604A KR 910008604 A KR910008604 A KR 910008604A KR 930007981 B1 KR930007981 B1 KR 930007981B1
- Authority
- KR
- South Korea
- Prior art keywords
- task
- information
- operating system
- area
- request
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
Abstract
Description
제 1 도는 종래의 타스크간 정보전달 흐름도.1 is a flow diagram of a conventional inter-task information transfer.
제 2 도는 본 발명의 블럭도.2 is a block diagram of the present invention.
제 3 도는 프로그램 구조에 따른 시스템 구조도.3 is a system structural diagram according to a program structure.
제 4 도는 메일 박스 전체 포멧 예시도.4 is a diagram illustrating an entire format of a mailbox.
제 5 도는 본 발명의 일실시예의 동작 수순도.5 is an operation flowchart of an embodiment of the present invention.
제 6 도는 OS가 정보전달 요구를 받은 경우의 흐름도.6 is a flowchart when the OS receives an information transfer request.
제 7 도는 OS가 수신 정보 유무 확인을 받은 경우의 흐름도.7 is a flowchart when the OS receives confirmation of presence information.
본 발명은 팩시밀리 시스템에 있어서 멀티타스크(multitask) 오퍼레이팅 시스템 (Operating System; 이하 OS라함)에서의 타스크간 통신방법에 관한 것으로, 특히 한 타스크에서 다른 타스크로 정보를 전달하는 경우 자(自) 타스크의 메모리 영역에 전달한 내용등을 소정의 정형화된 포멧에 맞추어 기록한 후 멀티타스크 OS에서 제공하는 서브루틴을 호출하여 OS레벨에서 정보의 전달을 실시하는 타스크간 통신방법에 관한 것이다.The present invention relates to a method of communication between tasks in a multitask operating system (hereinafter referred to as an OS) in a facsimile system. Particularly, in the case of transferring information from one task to another task, The present invention relates to a communication method between tasks in which information delivered to a memory area is recorded in a predetermined format, and then subroutines provided by a multitask OS are used to transfer information at an OS level.
현재까지는 팩시밀리 시스템에서는 타스크간 통신이라는 개념이 그다지 적용될 필요가 없었던 것으로 간주되어 왔다.Until now, the concept of inter-task communication did not have to be applied to facsimile systems.
그러나 점차 팩시밀리 시스템의 기능이 다양화 되면서 팩시밀리 시스템 구성 프로그램이 모듈화 되어 타스크라는 개념의 프로그램을 수행하게 되면서 멀티타스킹 (multitasking)과 타스크간 통신의 필요성이 인식되어지기에 이르렀다. 여기서 타스크라 함은 어떠한 목적을 수행하기 위한 하나의 프로그램 루틴을 말한다.However, as the functions of the facsimile system were gradually diversified, the facsimile system configuration program was modularized to execute the program of tasks. As a result, the necessity of multitasking and communication between tasks became recognized. A task is a program routine for performing a certain purpose.
현재까지의 팩시밀리 시스템에서도 간단한 종류의 타스크간 정보전달 작업이 수행되어져 오기는 했으나 이것은 OS에서 제공해 주는 것이 아니라 타스크간 규약에 의한 것이었다.In the facsimile system to date, a simple kind of intertask transfer of information has been performed, but this is not provided by the OS, but by inter-task protocol.
예를들어, A와 B 및 C타스크로 이루어진 프로그램에서 상기 A타스크와 B타스크는 일정 메모리 영역을 이용하여 서로 기록 및 독출하는 방법을 수행해 왔고, 상기 A타스크와 C타스크는 또 다른 메모리 영역을 결정하여 타스크간 정보전달을 하는 방법으로 타스크를 수행하였다고 가정한다.For example, in a program consisting of A, B, and C tasks, the A task and the B task have performed a method of writing and reading each other using a predetermined memory area, and the A task and the C task use another memory area. Assume that the task is performed by determining and transferring information between tasks.
제 1 도에 도시한 바와같이 예를들어 A타스크가 시작되면 상기 A타스크와 통신이 필요한 B 및 C타스크로 부터의 정보전달이 있었는지의 여부를 정해진 메모리 영역을 체크함으로써, 파악하여 만약 정보가 있는 경우에는 해당 루틴을 처리토록 하였다. 그러나 상기한 종래의 방법은 하나의 타스크와 여러개의 타스크간 정보전달시 상당히 많은 양의 메모리 영역과 타스크간 전달정보가 있는가의 여부를 체크하는 루틴의 비교정보를 필요로 하였으므로 타스크의 확장 및 타스크간 통신의 다양성이 없는 문제점을 갖고 있었다. 따라서 본 발명의 목적은 한 타스크에서 다른 타스크로 정보를 전달하는 경우 자(自) 타스크의 메모리 영역에 전달할 내용등을 소정의 정형화된 포멧에 맞추어 기록한 후 멀티타스크 OS에서 제공하는 서브루틴을 호출하여 OS레벨에서 정보의 전달을 실시하는 타스크간 통신방법을 제공함에 있다.For example, as shown in FIG. 1, when task A is started, the memory area is checked to determine whether there is information transfer from tasks B and C that need to communicate with task A, and if the information is If so, the routine is processed. However, the conventional method described above requires comparison information of routines for checking whether there is a large amount of memory area and transfer information between tasks when transferring information between one task and several tasks. There was a problem with no communication diversity. Accordingly, an object of the present invention is to record information to be delivered to a memory area of a task in a predetermined format when calling from one task to another, and then calling a subroutine provided by a multitask OS. The present invention provides an inter-task communication method for delivering information at an OS level.
이하 본 발명을 첨부한 도면을 참조하여 설명한다.Hereinafter, the present invention will be described with reference to the accompanying drawings.
제 2 도는 본 발명의 블럭도로써, 시스템의 전반적인 동작을 총괄적으로 제어하는 CPU(100)와, 다수의 타스크들이 수행되어질 프로그램 영역인 롬(200)과, 각 타스크들의 로컬 (local) 메모리 영역 (302)과 OS가 관할하는 OS관할 메모리 영역 (301)으로 이루어진 램(300)으로 구성한다. 단, 상기 타스크의 수는 상기 롬(200) 및 램(300)의 수용 능력을 고려하여 확장할 수 있다.2 is a block diagram of the present invention. The CPU 100 collectively controls the overall operation of the system, a ROM 200 which is a program area in which a plurality of tasks are to be performed, and a local memory area of each task. 302 and a RAM 300 composed of an OS jurisdiction memory region 301 which is controlled by the OS. However, the number of tasks may be expanded in consideration of the capacity of the ROM 200 and the RAM 300.
제 3 도는 본 발명의 프로그램 구조에 따른 시스템 구조도로써, 각각의 타스크들은 항상 OS를 이용하여 자신의 정보를 상대 타스크에 전달하여 상대 타스크의 어떠한 동작등을 요구할 수 있으며 타스크간 정보전달 및 어떠한 요구를 할 경우는 후술한 제 4 도와 같은 포멧으로 각 타스크의 로컬영역에 기록하여 OS의 유틸리티를 호출함으로써 타스크간 통신을 하는 구성을 갖는다.3 is a system structure diagram according to the program structure of the present invention, each task can always transmit its information to the counterpart task using the OS to request any operation of the counterpart task, and to transfer information between tasks and any requests. In this case, it has a configuration in which communication between tasks is performed by recording in a local area of each task in the same format as that of the fourth figure described later and calling a utility of the OS.
제 4 도는 본 발명에 따른 메일 박스 전체 포멧 예시도로써. 401은 405∼409까지의 단어 (word)수 (2바이트 1단어인 경우)이며, OS유틸리티는 이 길이를 참고로 하여 정보전달을 한다.4 is a diagram illustrating an entire mailbox format according to the present invention. 401 is the number of words from 405 to 409 (in the case of one word of two bytes), and the OS utility transfers information with reference to this length.
402는 해당 정보를 수신할 타스크 ID이다.402 is a task ID for receiving corresponding information.
403는 해당 정보를 송신하는 타스크 ID이다.403 is a task ID for transmitting the corresponding information.
404는 정보의 확장을 위한 더미(dummy)부분이다.404 is a dummy part for expanding information.
405∼407은 사용자가 메일 박스의 구별을 필요로 하는 경우의 구별수단으로 제공한다.405 to 407 serve as the discriminating means when the user needs to distinguish the mailboxes.
408은 메일 박스의 본체길이 (타스크 별로 필요한 정보만큼의 409부분의 길이)이다.408 is the body length of the mailbox (409 part lengths of information required for each task).
409는 타스크별로 전달할 정보를 작성하는 영역이다.409 is an area for creating information to be delivered for each task.
제 5 도는 본 발명의 일실시예의 동작 수순을 나타낸 것이고, 제 6 도는 정보전달 요구를 받은 경우를 나타낸 본 발명외 흐름도이며, 제 7 도는 OS가 수신정보 유무 확인을 받은 경우를 나타낸 본 발명의 흐름도이다.5 is a flowchart illustrating an operation of an embodiment of the present invention, FIG. 6 is a non-inventive flowchart illustrating a case where an information transmission request is received, and FIG. 7 is a flowchart of the present invention illustrating a case where an OS receives confirmation of reception information. to be.
상술한 구성에 의거 본 발명을 상세히 설명한다.The present invention will be described in detail based on the above configuration.
OS가 제공되어지는 제 2 도와 같은 시스템 환경에서 여러개의 타스크가 존재하며 또한 각 타스크는 언제라도 CPU(100)의 사용권을 OS로부터 받을 수 있는 경우에 있어서 제 3 도와 같은 타스크 A, B, C, D는 서로간의 필요정보전달 및 타스크 수행요구를 필요로 하게된다. 예를들어 타스크 A로 부터 타스크 B로 정보전달을 하는 경우에 대한 구체적인 동작 수순을 제 5 도를 참조하여 설명하면 하기와 같다.There are several tasks in the system environment, such as the second degree where the OS is provided, and each task can use the same tasks A, B, C, and C as the third degree in the case where the license of the CPU 100 can be obtained from the OS at any time. D needs each other to transmit necessary information and perform tasks. For example, a detailed operation procedure for the case of transmitting information from task A to task B will be described with reference to FIG. 5.
OS에서 타스크 A로 수행권을 부여한다(T1). 그 결과 상기 타스크 A가 수행되다가(T2), 타스크 B에 어떠한 수행요구를 하고저 할때 이 수행요구의 전달방법은 몇가지가 있겠으나 제 3 도와 같은 시스템 환경에서는 어느 타스크나 돌아 가면서 수행권을 받을 수 있는 구조이므로 상기 타스크 A는 자신의 로컬영역에 타스크 B로의 수행요구를 제 4 도의 포멧에 맞추어 기록한다(T3). 이후, OS유틸리티를 호출하게 되면(T4), OS는 그 내용을 OS가 관할하는 영역에 복사하여 보관한다(T5). 타스크 B가 OS로부터 수행권을 받았을 경우 (T6)에 다른 타스크로부터 어떠한 정보전달이 있었는가 하는 OS유틸리티를 호출하게 되면(T8), 상기 OS는 그 내용을 상기 타스크 B의 로컬영역에 복사하여 준다(T3). 그리고 상기 타스크 B는 상기 제 4 도의 포멧을 참고로 하여 그 내용을 분석하고(T10), 상기 타스크 B의 수행을 하게 된다(T7). 이때 해당 정보를 수신할 타스크 ID(402)는 B가 되고, 해당 정보를 송신하는 타스크 ID(402)는 B가되고, 해당정보를 송신하는 타스크 ID(403)는 A가 되며, 상기 타스크 A의 로컬영역으로부터의 정보를 타스크 B가 수신 확인하는 경우 405∼409까지의 단어수(401)만큼 정보를 복사한다. 여기서 상기 정보전달 요구를 OS가 받는 경우(T4)의 동작 수순을 제 6 도를 참조하여 살펴보면, 먼저 정보전달 요구원(元)의 타스크 ID를 확인한 다음 해당 정보수신 타스크 ID를 확인한다. OS관할영역의 타스크간 정보 저장영역을 요구원 타스크 ID 및 수신 타스크 ID를 참조하여 결정한다.The OS grants the right to task A (T1). As a result, when task A is performed (T2), and any task request is made to task B, there are several methods of delivering this task request. The task A records the performance request to the task B in its local area in accordance with the format of FIG. 4 (T3). Thereafter, when the OS utility is called (T4), the OS copies and stores the contents in the area controlled by the OS (T5). When task B receives the execution right from the OS (T6), when the OS utility is called (T8), which information is transmitted from another task (T8), the OS copies the contents to the local area of task B. (T3). The task B analyzes the contents by referring to the format of FIG. 4 (T10) and performs the task B (T7). At this time, the task ID 402 for receiving the information becomes B, the task ID 402 for transmitting the information becomes B, the task ID 403 for transmitting the information becomes A, and the task A When task B acknowledges the information from the local area, the information is copied by the number of words 401 to 405-409. Herein, referring to FIG. 6, the operation procedure of the case where the OS receives the information transfer request (T4), first checks the task ID of the information transfer request source, and then checks the corresponding information receiving task ID. The inter-task information storage area of the OS jurisdiction is determined with reference to the request source task ID and the received task ID.
상기 결정된 영역의 사용가능 여부를 확인하여 아직 전달정보가 남아 있는 경우로 판단되면 정보전달 요구원 타스크에 정보전달 불가를 통보하고 종료한다. 반면에 상기 결정된 영역이 사용 가능할 경우로 판단되면 해당 영역에 전달정보를 복사한 다음 정보전달 요구원에 정보전달 완료를 통보하고 종료한다.If it is determined that the determined area is available and the delivery information still remains, the information delivery request task is notified of the information delivery impossibility and terminates. On the other hand, if it is determined that the determined area is available, the transmission information is copied to the corresponding area, and the information delivery request source is notified of the completion of the information delivery and ends.
한편 상기와 같이 정보전달 요구 OS유틸리티를 호출시 OS가 이를 수행하기 위해서 필요로 하는 변수와 그에 수반하는 정보전달 요구 OS유틸리티로 부터의 응답은 각각 제 4 도를 작성한 로컬영역의 어드레스와 정보전달 완료 혹은 불가 메세지가 된다. 다음으로 제 7 도를 참조하여 수신정보 유무 확인 요구(T8)시의 구체적인 동작 수순을 설명하면, 먼저 정보수신 확인용 타스크 ID를 검사한 후 수신 요망 타스크 ID를 검사하여 그 타스크로부터 정보전달이 있었는지 확인한다.On the other hand, when calling the information transfer request OS utility as described above, the response from the variables required for the OS to perform it and the accompanying information transfer request OS utility is the address of the local area and the information transfer completed in FIG. Or not. Next, referring to FIG. 7, the specific operation procedure at the time of request for confirmation of reception information (T8) will be described. First, the task ID for confirming the reception of information is examined, and then the task ID for the reception request is examined and information is transmitted from the task. Check it.
상기 확인 결과 정보전달이 없었다고 판단되면 수신할 정보가 없음을 정보수신 확인 타스크에 통보하고 종료한다. 반면에 수신 요망 타스크로 부터 정보전달이 있었다고 판단되면 수신하는 타스크의 로컬영역에 전달정보를 복사한 다음 수신할 정보가 있음을 수신 확인 요구 타스크에 통보하고 종료한다.If it is determined that there is no information transmission as a result of the confirmation, it notifies the information receiving confirmation task that there is no information to receive and ends. On the other hand, if it is judged that there is information transmission from the receiving request task, the transmission information is copied to the local area of the receiving task, and then informs the acknowledgment request task that there is information to receive and ends.
한편 상기와 같이 수신정보 유무 확인 OS유틸리티를 호출시 OS가 이를 수행하기 위해서는 필요로 하는 변수와 그에 수반하는 수신정보 유무 확인 OS유딜리티로 부터의 응답은 각각 '수신 요망 타스크 ID 및 수신정보를 받을 로컬영역의 어드레스'와 '수신정보 존재 혹은 존재않음 메세지'가 된다.On the other hand, when calling the reception information confirmation OS utility as described above, the response required from the OS and the accompanying reception information existence confirmation OS utility to perform this operation is 'receive request task ID and reception information', respectively. Address of local area to receive and 'receive information present or not exist' message.
상술한 버퍼와 같은 정보전달 요구 OS유틸리티 및 수신정보 유무 확인 OS유틸리티들은 여러개의 타스크가 동작되는 시스템의 OS에 적용함으로써 각 타스크간 통신을 원활히 하는 동시에 정보전달 타스크는 OS유틸리티만을 호출함으로써 정보수신 타스크가 이 전달정보를 받을때까지 기다릴 필요가 없게 되는 이점이 있다 즉, 타스크 A는 OS유틸리티를 호출하고 그에 대한 응답단을 체크하고 나면 전달정보의 수신은 타스크 B가 수행권을 OS로부터 받았을 경우 행하여지므로 여러개의 타스크가 동작되는 시스템 환경에서의 시스템 효율이 향상되는 장점이 있다.Confirmation of information transfer request OS utility and reception information such as the above-mentioned buffer OS utilities are applied to the OS of the system in which multiple tasks are operated to facilitate communication between tasks, and at the same time, the information transfer task calls the OS utility to receive information. There is an advantage that it does not have to wait for the delivery information to be received. That is, after task A calls the OS utility and checks the response terminal, reception of the delivery information is performed when task B has received the execution right from the OS. As a result, system efficiency is improved in a system environment in which multiple tasks are operated.
또한 타스크간 전달정보가 대량인 경우에도 타스크간 통신이 가능하여 타스크의 수행 범위가 넓어지는 장점도 있다.In addition, even if the transfer information between tasks is large, there is an advantage that the range of performance of the task can be widened by the communication between tasks.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019910008604A KR930007981B1 (en) | 1991-05-27 | 1991-05-27 | Mail box communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019910008604A KR930007981B1 (en) | 1991-05-27 | 1991-05-27 | Mail box communication method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR920022817A KR920022817A (en) | 1992-12-19 |
KR930007981B1 true KR930007981B1 (en) | 1993-08-25 |
Family
ID=19314979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019910008604A KR930007981B1 (en) | 1991-05-27 | 1991-05-27 | Mail box communication method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR930007981B1 (en) |
-
1991
- 1991-05-27 KR KR1019910008604A patent/KR930007981B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR920022817A (en) | 1992-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5511196A (en) | Method and system in a data processing system for the enhancement of relationships between reference objects in an object oriented environment and a data object outside an object oriented environment | |
US5129085A (en) | Computer network with shared memory using bit maps including flags to indicate reserved memory areas and task status | |
US5590334A (en) | Object oriented message passing system and method | |
EP0205946B1 (en) | Flexible data transmission for message based protocols | |
US5734903A (en) | System and method for object oriented message filtering | |
US6571278B1 (en) | Computer data sharing system and method for maintaining replica consistency | |
US4891785A (en) | Method for transferring data files between computers in a network response to generalized application program instructions | |
KR920005606B1 (en) | Data input/output control system | |
US4885770A (en) | Boot system for distributed digital data processing system | |
EP0536073A2 (en) | Method and process for interprocess communication using named pipes | |
JPH0552980B2 (en) | ||
US5544325A (en) | System and method for generating messages for use in transaction networks | |
EP0837391B1 (en) | Multiprocessor system | |
EP0317481B1 (en) | Remote storage management mechanism and method | |
US5204954A (en) | Remote storage management mechanism and method | |
EP0317468B1 (en) | Bus flow control system | |
KR930007981B1 (en) | Mail box communication method | |
JP2008544371A (en) | How to handle lock-related inconsistencies | |
TW491979B (en) | Parallel data processing system and method of controlling such a system | |
US5432901A (en) | Method of dynamically generating a local format for use by a logical unit in a VTAM-type communications session | |
US20020040414A1 (en) | Multiprocessor system and transaction control method for the same | |
US6640269B1 (en) | Method and apparatus for assisting communication of information between two processes | |
US6112229A (en) | Secure terminal and method of communicating messages among processing systems internal thereto | |
JPH0666061B2 (en) | Multi CPU communication device | |
CN117785767B (en) | Message synchronization method, system and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20000726 Year of fee payment: 8 |
|
LAPS | Lapse due to unpaid annual fee |