JPH02228737A - Process control method - Google Patents

Process control method

Info

Publication number
JPH02228737A
JPH02228737A JP5026489A JP5026489A JPH02228737A JP H02228737 A JPH02228737 A JP H02228737A JP 5026489 A JP5026489 A JP 5026489A JP 5026489 A JP5026489 A JP 5026489A JP H02228737 A JPH02228737 A JP H02228737A
Authority
JP
Japan
Prior art keywords
task
tasks
operating system
monitor function
processes
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
Application number
JP5026489A
Other languages
Japanese (ja)
Inventor
Kazuhisa Nishino
西野 一壽
Naosuke Asari
直介 浅利
Noriaki Masubuchi
増渕 典明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Instruments Inc
Original Assignee
Seiko Instruments Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP5026489A priority Critical patent/JPH02228737A/en
Publication of JPH02228737A publication Critical patent/JPH02228737A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the quick processing of a process by interposing a task monitor function managed with an operating system and controlling plural tasks by this function. CONSTITUTION:A task monitor function 14 is interposed between an operating system 12 and plural tasks 15 and consists of a task switching means 14a and an inter-task communication means 14b. The task switching means 14a consists of a locus holding stage and a locus restoring stage to enable apparent parallel processing of plural tasks 15. The inter-task communication means 14b determines the task 15 as the control transition object based on priority levels of respective tasks in the task monitor function 14 with respect to many unspecific tasks 15 to execute synchronous control and exclusive control of tasks 15. Thus, the quick processing of the process is performed.

Description

【発明の詳細な説明】 (産業上の利用分野〕 この発明は、オペレーティング・システムを有する計算
機システムにおけるプロセスの制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method of controlling processes in a computer system having an operating system.

〔発明の概要〕[Summary of the invention]

この発明は、オペレーティング・システム上で複数のプ
ロセスを同時に制御するために、直接前記オペレーティ
ング・システムにより制御されるプロセスとは別に、タ
スク・モニタ機能により制御される前記プロセスと同様
の働きをするタスクを発生することで°、オペレーティ
ング・システム上のプロセスを減らし計算機システムの
オーバーヘッドを軽くすることにより、前記計算機シス
テムの能力の低下を防止するようにしたものである。
In order to simultaneously control a plurality of processes on an operating system, the present invention provides a process that, in addition to the process directly controlled by the operating system, creates a task that functions similarly to the process that is controlled by a task monitor function. By generating this, the number of processes on the operating system is reduced and the overhead of the computer system is reduced, thereby preventing a decline in the capacity of the computer system.

〔従来の技術〕[Conventional technology]

従来、第2図に示すように、オペレーティング・システ
ム12は、計算機システム11上で動作可能な複数のプ
ロセス13に対してプロセス管理を行い、前記プロセス
13の見かけ上、並列な処理を実現している。この時、
前記計算機システム11では見かけ上傾数のプロセス1
3が同時に動作するマルチ・プロセス手段が行われ、前
記プロセス13の優先度に従って処理が実行される。
Conventionally, as shown in FIG. 2, an operating system 12 performs process management on a plurality of processes 13 that can run on a computer system 11, and realizes apparently parallel processing of the processes 13. There is. At this time,
In the computer system 11, the apparent slope process 1
A multi-processing means is implemented in which three processes operate simultaneously, and processing is performed according to the priority of the processes 13.

プロセスの切り替え機構はオペレーティング・システム
12の有する多数のプロセスから構成されており、任意
のプロセス13ヘプロセスの制御を遷移する機構である
。オペレーティング・システム12では前記プロセスの
切り替え機構が前記マルチ・プロセス手段を実現する為
に必須となる。
The process switching mechanism is composed of a large number of processes included in the operating system 12, and is a mechanism for transferring process control to an arbitrary process 13. In the operating system 12, the process switching mechanism is essential to realize the multi-process means.

(発明が解決しようとする課題〕 しかし、従来のオペレーティング・システムを有する計
算機システムでは、以下に述べるような欠点があった。
(Problems to be Solved by the Invention) However, computer systems having conventional operating systems have the following drawbacks.

(1)  前記複数のプロセス13をマルチ・プロセス
手段で同時に処理する場合、前記オペレーティング・シ
ステム12は前記プロセスの切り替え機構の起動に係わ
るプロセスを計算機システムll上に多数生成する。こ
の為、前記プロセス13の増加に従い前記プロセスの切
り替え機構の起動される回数が多くなれば、計算機シス
テム11の負荷が制御対象プロセス13の遷移に分散さ
れ、総合的に前記プロセス13に対する処理能力低下の
主な原因となっていた。つまりマルチ・プロセス手段を
有するオペレーティング・システムではあるが、同時に
処理できる前記プロセス13の数には必要とされる処理
能力により制限を受けていた。
(1) When the plurality of processes 13 are processed simultaneously by multi-process means, the operating system 12 generates a large number of processes on the computer system 11 that are involved in starting the process switching mechanism. Therefore, if the number of times the process switching mechanism is activated increases as the number of processes 13 increases, the load on the computer system 11 will be distributed to the transitions of the controlled processes 13, and the processing capacity for the processes 13 will decrease overall. was the main cause. In other words, although the operating system has multi-processing means, the number of processes 13 that can be processed simultaneously is limited by the required processing power.

(2)前記複数のプロセス13のマルチ・プロセス処理
はすべて前記オペレーティング・システム12の有する
前記プロセスの切り替え機構で実行するため、プロセス
13の多い環境では前記計算機システム11自体の処理
能力が低下した。
(2) Since all multi-process processing of the plurality of processes 13 is executed by the process switching mechanism of the operating system 12, the processing power of the computer system 11 itself is reduced in an environment with many processes 13.

上記+1)と(2)で記載した原因により、前記プロセ
ス13の処理時間が長くなると言う欠点もあった。
Due to the causes described in +1) and (2) above, there was also a drawback that the processing time of the process 13 was increased.

そこで、この発明は従来の問題点を解決するため、前記
オペレーティング・システム12が計算機システムll
上に多数のプロセス13を生成することを抑止する手段
を設け、プロセス13に対する処理能力が低下しないプ
ロセスの制御方法を得ることを目的としていた。
Therefore, in order to solve the conventional problems, the present invention provides that the operating system 12 is a computer system II.
The object of the present invention is to provide a means for suppressing the generation of a large number of processes 13 above, and to obtain a process control method that does not reduce the throughput of the processes 13.

(i!!題を解決するための手段〕 この発明は上記m1題を解決するために、プロセス13
と等価な!!1作をするタスク15を、オペレーティン
グ・システム12からプロセス13と同様の制御を受け
るタスク・モニタ機能工4で制御71シている。
(Means for solving the i!! problem) In order to solve the above m1 problem, this invention solves the process 13.
Equivalent to! ! A task 15 that performs one work is controlled 71 by a task monitor function 4 which receives control from the operating system 12 in the same manner as the process 13.

前記タスク・モニタ機能14はオペレーティング・シス
テム12と複数の前記タスク15との間に介在し、オペ
レーティング・システム12の前記プロセス切り替え機
構と同様のR能を実現するために、タスク切り替え手段
14aとタスク間通信手段14bとから構成されている
。
The task monitor function 14 is interposed between the operating system 12 and the plurality of tasks 15, and in order to realize the same R function as the process switching mechanism of the operating system 12, the task monitor function 14 is configured to monitor the task switching means 14a and the tasks. and an intercommunication means 14b.

前記タスク切り替え手段24a!、ti跡保存行ai2
1と軌跡回復行程22より構成され、複数のタスク15
の見かけ上並列な処理を可能とするものであり、任意の
タスク15にタスクの制御を遷移させる手段である。前
記軌跡保存行程21はタスク制御の遷移に際し、実行再
開が可能なようにタスク15の状態をオペレーティング
・システム12のプロセスを通して計算機システム11
に保存する行程である。また前記軌跡回復行程22は計
算機システム11の実行状態をオペレーティング・シス
テム12を通して制御の遷移対象となるタスク15の状
態を回復する行程であり、このとき現行のタスク15の
状態は前記軌跡保存行821で再実行可能になっている
。
The task switching means 24a! , ti trace save line ai2
1 and a trajectory recovery process 22, which includes multiple tasks 15.
It is a means to enable apparently parallel processing of tasks 15, and to transfer control of a task to an arbitrary task 15. The trajectory saving step 21 saves the state of the task 15 to the computer system 11 through the process of the operating system 12 so that execution can be resumed upon transition of task control.
This is the process of saving the file. The trajectory recovery step 22 is a step of restoring the execution state of the computer system 11 through the operating system 12 to the state of the task 15 to which control is to be transitioned. It is now possible to rerun it.

寥また、前記タスク間通信手段14bは、前記タスク・
モニタ機能14内において、不特定多数のタスク15に
対し、各タスクのもつ優先度を基に制御の遷移対象とな
るタスク15を決定し、タスクの同期制御や排他制御を
実行することで、タスク管理を行う手段である。
Furthermore, the inter-task communication means 14b
Within the monitor function 14, the task 15 to which control is to be transferred is determined based on the priority of each task for an unspecified number of tasks 15, and by performing synchronous control or exclusive control of the task, It is a means of management.

(作用) 上記のように構成されたタスク切り替え手段とタスク間
通信手段を有するタスク・モニタ機能において、軌跡保
存行程と軌跡回復行程で構成された前記タスク切り替え
手段により前記複数存在するタスクが制御2′gされる
と、前記タスクは前記計算機システム上で見かけ上高速
で並列な処理が行われる。前記複数のタスクはオペレー
ティング・システム側から見た場合、タスク・モニタ機
能を通して1個のプロセス負荷としかならないため、前
記計算機システムの処理能力を低下させることなく、オ
ペレーティング・システムに直接制御されるプロセスと
タスク・モニタ機能に制御′Bされるタスクとを同時に
処理できるようになった。
(Operation) In the task monitor function having the task switching means and the inter-task communication means configured as described above, the plurality of tasks are controlled by the task switching means configured of a trajectory saving process and a trajectory recovery process. 'g, the task is apparently processed in parallel at high speed on the computer system. When viewed from the operating system side, the multiple tasks become only one process load through the task monitor function. It is now possible to simultaneously process tasks controlled by the task monitor function.

〔実施例〕〔Example〕

以下に、この発明の実施例を図面に基づいて説明する。 Embodiments of the present invention will be described below based on the drawings.

第1図本発明に係わるタスク・モニタ機能のブロック図
において、オペレーティング・システム12を有する計
算機システム11は、オペレーティング・システム12
に制御される複数のプロセス13と同様に制御されるタ
スク・モニタ機能14を有する。さらにタスク・モニタ
411能14は複数のタスク15を有している。
In FIG. 1, a block diagram of a task monitor function according to the present invention, a computer system 11 having an operating system 12 is
It has a plurality of processes 13 that are controlled by the computer and a task monitor function 14 that is similarly controlled. Further, the task monitor 411 function 14 has a plurality of tasks 15.

次にタスク・モニタ機能の構成を説明すると、第3図タ
スク・モニタ機能の構成図に示す通り、前記タスク・モ
ニタ4111能14はタスク切り替え手段14aとタス
ク間通信手段14bとから構成されている。
Next, the configuration of the task monitor function will be explained. As shown in the configuration diagram of the task monitor function in FIG. 3, the task monitor 4111 function 14 is composed of task switching means 14a and inter-task communication means 14b .

第4図は、本発明に係わるタスク切り替え手段の一実施
例を示すブロック図で、例としてオペレーティング・シ
ステムにUNIXを取り上げるならば、UNIXの関数
s e t Jmpにより構成されるタスクの軌跡保存
行程21と、UNIXの関数1ongjmpにより構成
される退避したタスクの軌跡回復行程22と、条件判断
行程23とにより構成されている。タスク・モニタl1
lff!14は初期設定段階でタスクtSaやタスク1
5b等複数のタスク15に対し、各タスク15の軌跡情
報が退避する保存領域を軌跡保存行程(s a L J
mp処理)21により割り付ける。タスク15aが実行
中でタスク15bが退避中の状態からタスクの切り替え
が発生し、タスク15bが実行状態になるためには、軌
跡保存行程(s s t 3mp処理)21の結果を条
件判断行程23にて判断し条件が符号した場合に軌跡回
復行程(IongJmp処理)22を行い、タスク15
bの軌跡情報を前記保存領域から復帰させることが必要
であり、退避以前のタスク15bの軌跡情報の回復によ
り実行が再vnされる。
FIG. 4 is a block diagram showing an embodiment of the task switching means according to the present invention. Taking UNIX as an operating system as an example, the task trajectory saving process is configured by the UNIX function s e t Jmp. 21, an evacuated task trajectory recovery step 22 configured by the UNIX function 1ongjmp, and a condition determination step 23. Task monitor l1
lff! 14 is task tSa and task 1 at the initial setting stage.
For multiple tasks 15 such as 5b, the storage area where the trajectory information of each task 15 is saved is defined as a trajectory preservation process (s a L J
mp processing) 21. In order for task switching to occur from the state where the task 15a is running and the task 15b is being saved, and for the task 15b to enter the running state, the result of the trajectory saving step (s s t 3mp process) 21 is determined in the condition determining step 23. If the condition is determined to be positive, the trajectory recovery process (IongJmp process) 22 is performed, and task 15 is executed.
It is necessary to restore the trajectory information of task 15b from the storage area, and execution is restarted by restoring the trajectory information of task 15b before the evacuation.

このようにオペレーティング・システム12の軌跡保存
行程21と軌跡回復行程22により構成されたタスク切
り替え手段14aは、オペレーティング・システム12
上に新たに別プロセスを生成しないため、オペレーティ
ング・システム12側から見た場合タスク・モニタ機能
14は一つのプロセスとして処理される。さらにタスク
・モニタ機能14のもとではタスク切り替え手段14a
とタスク間通信手段14bにより、プロセスと等価なタ
スク15を複数動作できる。
As described above, the task switching means 14a configured by the trajectory saving process 21 and the trajectory recovery process 22 of the operating system 12
Since no new separate process is created on top of the task monitor function 14, the task monitor function 14 is processed as one process when viewed from the operating system 12 side. Further, under the task monitor function 14, the task switching means 14a
A plurality of tasks 15 equivalent to processes can be operated by the inter-task communication means 14b.

〔発明の効果〕〔Effect of the invention〕

以上のように本発明によれば、オペレーティング・シス
テムにタスクが多数存在しても、計算機システムはタス
ク・モニタ機能の効果により負荷がプロセス−つ分とな
り、プロセスに対して高速処理が可能となる。
As described above, according to the present invention, even if there are many tasks in the operating system, the load on the computer system is reduced to one process due to the effect of the task monitor function, and high-speed processing is possible for the process. .

またオペレーティング・システムにタスク・モニタ機能
を構築することにより、以下に述べるような効果がある
。
Additionally, building a task monitor function in the operating system has the following effects.

+1t  ?JI数のプロセスを同時に処理する場合、
計算機システム上に多数のプロセスを構成せずにタスク
・モニタ機能のもとで動作するタスクを増加させること
で、プロセスの増加により前記プロセスの切り替え機構
の負荷が増大するのを防止できるため、計算機システム
においてプロセスに対する処理能力の低下を制御する効
果がある。つまりプロセスの処理能力を変化させずにタ
スクを任意に増やすことが可能となる。
+1t? When processing JI number of processes simultaneously,
By increasing the number of tasks that operate under the task monitor function without configuring a large number of processes on the computer system, it is possible to prevent the load on the process switching mechanism from increasing due to an increase in the number of processes. It has the effect of controlling the decline in processing capacity for processes in the system. In other words, it is possible to arbitrarily increase the number of tasks without changing the processing capacity of the process.

(2)  タスク・モニタ機能を有するタスク切り替え
機構により、複数タスクのマルチ・タスク処理を行うた
め、タスクの多い環境でも計算機システムのマルチ・プ
ロセス処理能力の低下を制御する効果がある。
(2) Since multi-task processing of a plurality of tasks is performed by a task switching mechanism having a task monitor function, it is effective in controlling the decline in the multi-process processing ability of a computer system even in an environment with many tasks.

(3)  計算機システムの前記処理能力低下の制′4
1−はプロセスに対する処理能力を向上し、プロセスの
処理時間を短縮する効果がある。
(3) Controlling the decline in processing capacity of computer systems'4
1- has the effect of improving the throughput for the process and shortening the processing time of the process.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係わるタスク・モニタ機能のブロック
図、第2図は従来のオペレーティング・システムのブロ
ック図、第3図は本発明に係わるタスク・モニタJa能
の構成図、第4図は本発明に係わるタスク切り替え手段
の一実施例を示すブロック図である。 11・ ・ 12・ ・ 14・ ・ 14a  ・ 14b  ・ 21・ ・ 計算機システム ・オペレーティング・システム ・タスク・モニタ機能 ・タスク切り替え手段 ・タスク間通信手段 ・軌跡保存行程 22・ ・軌跡回復行程 以 上
Figure 1 is a block diagram of the task monitor function according to the present invention, Figure 2 is a block diagram of a conventional operating system, Figure 3 is a block diagram of the task monitor function according to the present invention, and Figure 4 is a block diagram of the task monitor function according to the present invention. FIG. 3 is a block diagram showing an embodiment of task switching means according to the present invention. 11. ・ 12. ・ 14. ・ 14a ・ 14b ・ 21. ・ Computer system, operating system, task, monitor function, task switching means, inter-task communication means, trajectory preservation process 22, ・trajectory recovery process and above

Claims (1)

【特許請求の範囲】[Claims] オペレーティング・システムを有する計算機システムに
おいて、オペレーティング・システムによって管理され
るタスク・モニタ機能を介在させ、該タスク・モニタ機
能により複数存在するタスクを制御することを特徴とす
るプロセスの制御方法。
1. A process control method in a computer system having an operating system, which comprises intervening a task monitor function managed by the operating system and controlling a plurality of tasks using the task monitor function.
JP5026489A 1989-03-01 1989-03-01 Process control method Pending JPH02228737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5026489A JPH02228737A (en) 1989-03-01 1989-03-01 Process control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5026489A JPH02228737A (en) 1989-03-01 1989-03-01 Process control method

Publications (1)

Publication Number Publication Date
JPH02228737A true JPH02228737A (en) 1990-09-11

Family

ID=12854112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5026489A Pending JPH02228737A (en) 1989-03-01 1989-03-01 Process control method

Country Status (1)

Country Link
JP (1) JPH02228737A (en)

Similar Documents

Publication Publication Date Title
JP3696901B2 (en) Load balancing method
JPH09269903A (en) Process management method
CN115269139A (en) Dual-operating-system mixed real-time task scheduling method and system based on trusted area
JPH0644234B2 (en) Task management device
JP2580061B2 (en) Active maintenance processing method for server-type programs
JPS6386035A (en) Stack pool management method
JPH01195562A (en) Control system for allocation of input/output device
JPS61134863A (en) Data processor
JPH0266640A (en) Debugger task scheduling system
JP2590872B2 (en) Task scheduling method
JPH04155532A (en) Task switching system
JPS60238938A (en) Operating method of computer system
JP2000132409A (en) Stack sharing method for tasks without wait states
JP2704137B2 (en) Current / spare switching method
JPH0341518A (en) Program accessing system
JPH01195543A (en) Multi-os system for switch of interruption vector table
JPH01188977A (en) Job execution control system
JPH03184153A (en) Multiple connection processing method
JP2000003342A (en) Network file distributed sorting method and network file distributed sorting system
JPH01185733A (en) Input/output emulation system
JPH01177133A (en) Event information system
JPH0310132B2 (en)
JPH061466B2 (en) Lock exclusive control method
JPS62219061A (en) Control system for multiprocessor
JPH0528120A (en) Processing system by multiprocessor