JPS5995653A - Task executing method of multitask controller - Google Patents
Task executing method of multitask controllerInfo
- Publication number
- JPS5995653A JPS5995653A JP20496882A JP20496882A JPS5995653A JP S5995653 A JPS5995653 A JP S5995653A JP 20496882 A JP20496882 A JP 20496882A JP 20496882 A JP20496882 A JP 20496882A JP S5995653 A JPS5995653 A JP S5995653A
- Authority
- JP
- Japan
- Prior art keywords
- task
- language
- working area
- controller
- interpreter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
この発明は、制御装置において、複数のタスクを実行さ
せる方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for causing a control device to execute a plurality of tasks.
従来、この種の装置として、第1図に示すものがあって
、図面中の各タスクは機械語で作成されており、モニタ
プログラムの管理下にある。Conventionally, there is a device of this type as shown in FIG. 1, in which each task in the drawing is created in machine language and is under the control of a monitor program.
次に動作について説明する。各タスクは、モニタプログ
ラムにより、起動、あるいは再起動され、処理を実行し
、処理の終了時やある再起動要因発生まで処理を中断す
る時に、モニタプログラムの管理下へ戻る。一定時間間
隔の割込や、他装置からの割込は、モニタプログラムに
対して、あるタスクの起動あるいは、再起動を要求する
。又、処理実行中のタスクが、停止中の他タスクの起動
、再起動要求を出すこともできる。モニタプログラムは
、割込などにより起動、再起動要求のあったタスクを起
動、再起動し、そのタスクから戻ると、他の起動、再起
動要求のあったタスクを起動、再起動し、次々にタスク
の切り換えを行う。Next, the operation will be explained. Each task is started or restarted by the monitor program, executes processing, and returns to the control of the monitor program when the processing ends or when the processing is interrupted until a certain restart factor occurs. Interruptions at fixed time intervals or interrupts from other devices request the monitor program to start or restart a certain task. Furthermore, a task that is currently executing a process can issue a request to start or restart another task that is stopped. The monitor program starts and restarts a task that has been requested to start or restart due to an interrupt, etc., and when it returns from that task, starts or restarts other tasks that have requested startup or restart, one after another. Switch tasks.
従来のマルチタスク用制御装置のタスク実行方法は、以
上のような方法をとり、機械語で各タスクプログラムを
作成しないとならず、高級言語を用いることができない
ため、プログラムの作成に非常に手間がかかるという欠
点があった。Conventional task execution methods for multitasking control devices use the method described above, and each task program must be created in machine language, and high-level languages cannot be used, making it very time-consuming to create programs. The disadvantage was that it took a lot of time.
この発明は、上記のような従来のものの欠点を除去する
ためになされたもので、制御装置内に、インタプリタ、
コンパイラ等の機能を設け、さらに言語を実行できる形
に変換する作業領域を各タスクに対して別々に設けるこ
とによシ、異種の言語、たとえば、機械語、RASIC
。This invention was made in order to eliminate the drawbacks of the conventional ones as described above, and includes an interpreter,
By providing a function such as a compiler and a separate work area for each task to convert the language into an executable form, it is possible to create
.
FORTRAN などで作成された複数のタスクを実行
させることを可能とするマルチタスク用制御装置のタス
ク実行方法を提供することを目的としている。It is an object of the present invention to provide a task execution method for a multitasking control device that makes it possible to execute a plurality of tasks created using FORTRAN or the like.
以下、この発明の一実施例を第2図により説明する。An embodiment of the present invention will be described below with reference to FIG.
この第2図における各タスクは、機械語、RASICな
どで作成されている。Each task in FIG. 2 is created in machine language, RASIC, or the like.
そしてその動作について説明すれば次の通りである。The operation will be explained as follows.
制御装置の動作開始時(初期時)に、言語の種類および
言語変換用作業領域を各タスクに対して設定しておく。When the control device starts operating (initial time), the language type and language conversion work area are set for each task.
次に、他タスクからの要求、あるいは、一定時間間隔で
の割込、他装置からの割込などにより、タスクを起動さ
せる際や、処理を中断していたタスクを再起動させる際
には、モニタプログラムが、初期時に設定されたデータ
を元にして、たとえば、機械語で作成されたタスクであ
れば、そのまま起動あるいは再起動させ、RASICで
作成されたタスクであれば、インタプリタを起動し、そ
のタスク用の作業領域でRASIC言語をインタブリッ
トし、タスクの起動、あるいは再起動を行う。Next, when starting a task due to a request from another task, an interrupt at a fixed time interval, an interrupt from another device, etc., or when restarting a task whose processing has been interrupted, For example, if the monitor program is a task created in machine language, it will be started or restarted based on the data set at the time of initialization, and if it is a task created in RASIC, it will start the interpreter, Interbret the RASIC language in the work area for that task and start or restart the task.
以上のように、この発明によれば、制御装置内にインタ
プリタ、コンパイラなどの機能および、その機能を各タ
スクに対して行うための作業領域を設けるように構成し
たため、たとえば、ハードウェアに密着した処理を行う
タスクは機械語で、数値データの処理を行うタスクは高
級言語で作成するなど、処理内容に最適の言語でタスク
を作成することができ、タスクプログラムの作成および
、保守の容易なものが得られる効果がある。As described above, according to the present invention, the control device is configured to have functions such as an interpreter and a compiler, and a work area for performing these functions for each task. Tasks that perform processing can be created in machine language, tasks that process numerical data can be created in a high-level language, and tasks can be created in the language that is most suitable for the processing content, making task programs easy to create and maintain. There is an effect that can be obtained.
第1図は、従来装置の方法を説明する概略図、第2図は
、この発明の一実施例の方法を説明する概略図である。
代理人 葛野信−FIG. 1 is a schematic diagram illustrating a method of a conventional apparatus, and FIG. 2 is a schematic diagram illustrating a method of an embodiment of the present invention. Agent Makoto Kuzuno
Claims (1)
び、言語を実行できる形に変換するだめの作業領域を設
け、言語形体の異なる複数のタスクを実行させることを
特徴とするマルチタスク用制御装置のタスク実行方法。A task for a multitasking control device characterized in that the control device has functions such as an interpreter, a compiler, etc., and a work area for converting a language into an executable form, and executes a plurality of tasks with different language forms. Execution method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP20496882A JPS5995653A (en) | 1982-11-22 | 1982-11-22 | Task executing method of multitask controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP20496882A JPS5995653A (en) | 1982-11-22 | 1982-11-22 | Task executing method of multitask controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS5995653A true JPS5995653A (en) | 1984-06-01 |
Family
ID=16499274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP20496882A Pending JPS5995653A (en) | 1982-11-22 | 1982-11-22 | Task executing method of multitask controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5995653A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05233326A (en) * | 1991-12-19 | 1993-09-10 | Internatl Business Mach Corp <Ibm> | Method and system for handling event in computer system |
-
1982
- 1982-11-22 JP JP20496882A patent/JPS5995653A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05233326A (en) * | 1991-12-19 | 1993-09-10 | Internatl Business Mach Corp <Ibm> | Method and system for handling event in computer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5995653A (en) | Task executing method of multitask controller | |
JPH0328933A (en) | Task control method | |
JPH07110773A (en) | Task switching device | |
JPS6027905A (en) | Programmable controller | |
JPH064318A (en) | Error detecting system | |
JPH04178734A (en) | Program language processor | |
JP2581327B2 (en) | Virtual machine I / O interrupt handling method | |
JPS63167933A (en) | Subprogram calling system in interpreter | |
JPS63158632A (en) | System program execution system in interpreter system | |
JPH0379726B2 (en) | ||
JPH0212340A (en) | Virtual computer | |
JPS605302A (en) | Programming method of sequence controller | |
JPH03164940A (en) | Computer having plural interruption periods | |
JPS62113238A (en) | Correction system for program of electronic computer system | |
JPS63253441A (en) | User program and task managing system for debugger | |
JP2000029850A (en) | Task controlling method using inter-processor communication of operating system | |
JPH064306A (en) | Method for dividing interruption processing | |
JPS5688551A (en) | Control system for multiprocessor system | |
JPS62219061A (en) | Control system for multiprocessor | |
JPH01259435A (en) | Inserting method for maintenance program | |
JPS6388667A (en) | Command nest system in time sharing system | |
JPH0744405A (en) | Measuring control system for operating time of virtual computer in virtual computer system | |
JPH01147624A (en) | Language processing system | |
JPH02208741A (en) | Peripheral equipment control system | |
JPH02287631A (en) | Program multiexecuting system |