JP2000066905A - Method and device for task rising and wait processing in real time os - Google Patents

Method and device for task rising and wait processing in real time os

Info

Publication number
JP2000066905A
JP2000066905A JP10247758A JP24775898A JP2000066905A JP 2000066905 A JP2000066905 A JP 2000066905A JP 10247758 A JP10247758 A JP 10247758A JP 24775898 A JP24775898 A JP 24775898A JP 2000066905 A JP2000066905 A JP 2000066905A
Authority
JP
Japan
Prior art keywords
task
queue
waiting
system call
wait
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
JP10247758A
Other languages
Japanese (ja)
Inventor
Masanori Koseki
雅典 小関
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.)
NEC Yonezawa Ltd
Original Assignee
NEC Yonezawa Ltd
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 NEC Yonezawa Ltd filed Critical NEC Yonezawa Ltd
Priority to JP10247758A priority Critical patent/JP2000066905A/en
Publication of JP2000066905A publication Critical patent/JP2000066905A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the immediacy of the entire real time OS by registering a task with a wait queue at the time of a wait system call and performing no elimination from an executable queue in the wait system call. SOLUTION: At ask B is registered with a wait queue. When a task A issues a wait system call, the task A is registered with the wait queue by a wait queue registering means 104. Next, the task A is set to a wait state to make it an interrupt allowable state and a scheduler is called. The scheduler retrieves an executable queue in which an executable task exists. In a rising system call for a task, a wait queue eliminating means 105 eliminates the task B from the wait queue. An executable queue entry changing means 106 changes the entry order of the task B to the last. And, the scheduler is called.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、リアルタイムOS
(オペレーティングシステム)におけるシステムコール
処理に係り、特にシステムコールによるタスクの起床及
び待ち処理方法に関する。
[0001] The present invention relates to a real-time OS.
The present invention relates to a system call processing in an (operating system), and particularly to a task wake-up and wait processing method using a system call.

【0002】[0002]

【従来の技術】従来のリアルタイムOSにおいては、ユ
ーザシステムにおける即時性を向上させるために、シス
テムコール処理内での割り込み禁止時間を極力短くする
ように構成されている。しかし、システムコール処理内
でのキュー操作(実行可能キューと待ちキュー間の移
動)は割り込み処理から呼び出されるシステムコールに
よって、同じキューが操作されるのを防ぐため、必ず割
り込み禁止状態で行わなければならない。特に、待ちシ
ステムコールについては、前記キュー操作に加え、操作
対象タスクの状態の判断も割り込み禁止区間で行わなけ
ればならない。
2. Description of the Related Art In a conventional real-time OS, in order to improve immediacy in a user system, an interrupt prohibition time in a system call process is configured to be as short as possible. However, queue operation (moving between the executable queue and the wait queue) in the system call processing must be performed in the interrupt disabled state to prevent the same queue from being operated by the system call called from the interrupt processing. No. In particular, regarding the waiting system call, in addition to the queue operation, the determination of the state of the operation target task must be performed in the interrupt disabled section.

【0003】従来のリアルタイムOSの一例として、特
開平8−297581号公報に開示されているものがあ
る。
An example of a conventional real-time OS is disclosed in Japanese Patent Application Laid-Open No. Hei 8-297581.

【0004】特開平8−297581号公報に記載の発
明には、リアルタイムOSによって制御されるコンピュ
ータシステムにおいて、リアルタイムOSによる資源管
理に影響を及ぼさない割り込みについては、システムコ
ール処理中も割り込み可能とすることにより、システム
コールを発行する必要のない割り込み処理を、遅延なく
処理できるようにするための技術にいついて開示がなさ
れている。
According to the invention described in Japanese Patent Application Laid-Open No. Hei 8-297581, in a computer system controlled by a real-time OS, an interrupt that does not affect resource management by the real-time OS can be interrupted even during system call processing. As a result, a technology for enabling an interrupt process that does not need to issue a system call to be processed without delay has been disclosed.

【0005】しかしながら、このような従来の技術にお
いても、依然、システムコールを発行する割り込み処理
について、割り込み禁止時間による制限が発生するとい
う問題がある。
However, even in such a conventional technique, there is still a problem that the interrupt processing for issuing the system call is restricted by the interrupt disable time.

【0006】[0006]

【発明が解決しようとする課題】以上、述べたように従
来のリアルタイムOSにおけるシステムコールの処理ス
テップは、 (1)対象タスクが待ち状態かどうかの判断(待ち状態で
ない場合は(5)へ) (2)対象タスクの状態などの変更 (3)実行可能キューからの対象タスクの削除 (4)待ちキューへの対象タスクの登録 (5)スケジューラの呼び出し となっており、(1)〜(4)のステップ間では、割り込み処
理から呼び出されるシステムコールによって、同じキュ
ーが操作されることを防止する必要から、割り込み禁止
状態となっている( (4)の後に割り込み許可にする事は
可能)。このため、リアルタイムOS全体の即時性の低
下、即ちユーザコンピュータシステムにおける即時性の
低下が発生するという問題があった。
As described above, the processing steps of the system call in the conventional real-time OS are as follows: (1) Judge whether the target task is in a waiting state (if not, go to (5)) (2) Change the status of the target task, etc. (3) Delete the target task from the executable queue. (4) Register the target task in the waiting queue. (5) Call the scheduler. Between the steps in ()), interrupts are disabled (it is possible to enable interrupts after (4)) because it is necessary to prevent the same queue from being operated by a system call called from interrupt processing. For this reason, there has been a problem that the immediacy of the entire real-time OS is reduced, that is, the immediacy of the user computer system is reduced.

【0007】本発明は、上記問題に鑑みてなされたもの
であり、その目的とするところは、リアルタイムOS全
体の即時性の向上を実現するリアルタイムOSにおける
タスクの起床及び待ち処理方法並びにその装置を提供す
る点にある。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a method and an apparatus for wake-up and wait processing of a task in a real-time OS realizing an improvement in the immediacy of the whole real-time OS. The point is to provide.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明の請求項1に記載のリアルタイムOSにおけ
るタスクの起床及び待ち処理装置は、待ちシステムコー
ル時、実行可能キューからの削除を行わないようにする
手段を備えたことを特徴として構成されるものである。
また、請求項2に記載のリアルタイムOSにおけるタス
クの起床及び待ち処理装置は、請求項1に記載のリアル
タイムOSにおけるタスクの起床及び待ち処理装置にお
いて、前記待ちシステムコール時、実行可能キューから
の削除を行わないようにする手段が、情報を制御するデ
ータ書き込み手段とデータ読み込み手段とを含む制御部
と、情報を記憶する領域である記憶部と、により構成さ
れることを特徴とするものである。また、請求項3に記
載のリアルタイムOSにおけるタスクの起床及び待ち処
理装置は、請求項2に記載のリアルタイムOSにおける
タスクの起床及び待ち処理装置において、前記記憶部は
少なくとも、スケジューラ処理状態記憶領域と、タスク
識別子記憶領域と、を含んで構成されることを特徴とす
るものである。また、請求項4に記載のリアルタイムO
Sにおけるタスクの起床及び待ち処理装置は、請求項3
に記載のリアルタイムOSにおけるタスクの起床及び待
ち処理装置において、前記データ書き込み手段が、前記
記憶部に存在する前記タスク識別子記憶領域を変更制御
するタスク識別子記憶領域変更手段と、前記記憶部に存
在する前記スケジューラ処理状態記憶領域を変更制御す
るスケジューラ処理状態記憶領域変更手段と、待ちキュ
ーへのタスクの登録を行う待ちキュー登録手段と、待ち
キューからタスクの削除を行う待ちキュー削除手段と、
実行可能キューに登録されているタスクのエントリ順番
の変更を行う実行可能キューエントリ変更手段と、によ
り構成されることを特徴とするものである。また、請求
項5に記載のリアルタイムOSにおけるタスクの起床及
び待ち処理装置は、請求項2,3,または4に記載のリ
アルタイムOSにおけるタスクの起床及び待ち処理装置
において、前記データ読み込み手段が、前記記憶部に存
在する前記スケジューラ処理状態記憶領域と、前記タス
ク識別子記憶領域とを、前記制御部内に読み込むように
構成されたことを特徴とするものである。また、請求項
6に記載のリアルタイムOSにおけるタスクの起床及び
待ち処理装置は、請求項4に記載のリアルタイムOSに
おけるタスクの起床及び待ち処理装置において、前記制
御部が、待ちシステムコール時においては、前記データ
書き込み手段に含まれる待ちキュー登録手段により、待
ちキューへのタスクの登録を行い、起床システムコール
時においては、前記データ書き込み手段に含まれる待ち
キュー削除手段及び前記実行可能キューエントリ変更手
段により、待ちキューからのタスクの削除及び実行可能
キュー内のエントリ順番の変更を行うことを特徴とする
ものである。また、請求項7に記載のリアルタイムOS
におけるタスクの起床及び待ち処理方法は、待ちシステ
ムコール時、実行可能キューからの削除を行わないよう
にしたことを特徴とするものである。また、請求項8に
記載のリアルタイムOSにおけるタスクの起床及び待ち
処理方法は、請求項7に記載のリアルタイムOSにおけ
るタスクの起床及び待ち処理方法において、待ちシステ
ムコール時において、待ちキューへのタスクの登録を行
い、起床システムコール時において、待ちキューからの
タスクの削除及び実行可能キュー内のエントリ順番の変
更をそれぞれ行うことにより、待ちシステムコールでの
実行可能キューからの削除を行わないようにしたことを
特徴とするものである。
In order to achieve the above object, a task wake-up and wait processing device in a real-time OS according to the first aspect of the present invention performs deletion from an executable queue at the time of a wait system call. It is characterized in that it is provided with a means for preventing such a situation.
A task wake-up and wait processing device in a real-time OS according to claim 2 is the task wake-up and wait processing device in a real-time OS according to claim 1, wherein the task is deleted from the executable queue at the time of the wait system call. Means for preventing information from being performed is constituted by a control unit including a data writing unit and a data reading unit for controlling information, and a storage unit which is an area for storing information. . According to a third aspect of the present invention, there is provided a real-time OS task wake-up and wait processing device according to the second aspect, wherein the storage unit includes at least a scheduler process state storage area. , A task identifier storage area. In addition, the real-time O
The task wake-up and waiting processing device in S
In the task wake-up and wait processing device in the real-time OS described in the above, the data writing means is a task identifier storage area changing means for controlling change of the task identifier storage area existing in the storage part, and is present in the storage part. A scheduler processing state storage area change unit that controls change of the scheduler processing state storage area, a wait queue registration unit that registers a task in a wait queue, a wait queue deletion unit that deletes a task from the wait queue,
Executable queue entry changing means for changing the entry order of tasks registered in the executable queue. A task wake-up and wait processing device in a real-time OS according to claim 5 is the task wake-up and wait processing device in a real-time OS according to claim 2, 3, or 4. The scheduler processing state storage area and the task identifier storage area existing in a storage unit are configured to be read into the control unit. A task wake-up and wait processing device in a real-time OS according to claim 6 is the task wake-up and wait processing device in a real-time OS according to claim 4, wherein the control unit is configured to execute a wait system call during a wait system call. The task is registered in the waiting queue by the waiting queue registering means included in the data writing means, and at the time of a wake-up system call, the task is deleted by the waiting queue deleting means and the executable queue entry changing means included in the data writing means. , The task is deleted from the waiting queue and the order of entries in the executable queue is changed. A real-time OS according to claim 7
The task wake-up and wait processing method described in is characterized in that deletion from the executable queue is not performed during a wait system call. A task wake-up and wait processing method in a real-time OS according to claim 8 is the task wake-up and wait processing method in a real-time OS according to claim 7, wherein the task is stored in a wait queue during a wait system call. By registering and deleting tasks from the waiting queue and changing the order of entries in the executable queue during the wake-up system call, deletion from the executable queue in the waiting system call is no longer performed. It is characterized by the following.

【0009】[0009]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明を行う。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は、本発明のリアルタイムOSにおけ
るタスクの起床及び待ち処理方法を実現するためのコン
ピュータシステムの一例を示したブロック図である。
FIG. 1 is a block diagram showing an example of a computer system for realizing a task wake-up and wait processing method in a real-time OS according to the present invention.

【0011】図1に示す如くに、本発明のリアルタイム
OSにおけるタスクの起床及び待ち処理方法を実現する
ためのコンピュータシステムは、大きくは情報を制御す
るデータ書き込み手段100とデータ読み込み手段10
1とを含む制御部10と、情報を記憶する領域である記
憶部11とにより構成されている。
As shown in FIG. 1, a computer system for realizing a task wake-up and wait processing method in a real-time OS according to the present invention generally includes a data writing unit 100 and a data reading unit 10 for controlling information.
1 and a storage unit 11 which is an area for storing information.

【0012】また、記憶部11は、スケジューラ処理状
態記憶領域107と、タスク識別子記憶領域108とを
含んで構成され、データ書き込み手段100は、タスク
識別子記憶領域変更手段102と、スケジューラ処理状
態記憶領域変更手段103と、待ちキュー登録手段10
4と、待ちキュー削除手段105と、実行可能キューエ
ントリ変更手段106とを含んでそれぞれ構成される。
The storage unit 11 includes a scheduler processing state storage area 107 and a task identifier storage area 108. The data writing means 100 includes a task identifier storage area changing means 102, a scheduler processing state storage area. Change means 103 and waiting queue registration means 10
4, a waiting queue deleting unit 105, and an executable queue entry changing unit 106.

【0013】タスク識別子記憶領域変更手段102は、
記憶部11に存在するタスク識別子記憶領域108を、
スケジューラ処理状態記憶領域変更手段103は、記憶
部11に存在するスケジューラ処理状態記憶領域107
をそれぞれ変更制御する。
The task identifier storage area changing means 102
The task identifier storage area 108 existing in the storage unit 11 is
The scheduler processing state storage area change unit 103 is a processing unit that stores the scheduler processing state storage area 107 existing in the storage unit 11.
Are respectively changed.

【0014】待ちキュー登録手段104は、待ちキュー
への登録を行う。図2は、待ちキューにタスクBのみが
登録されている状態を示している。この状態において、
待ちキュー登録手段104により、タスクAが待ちキュ
ーに登録されると、待ちキューは、図3に示す如くの状
態となる。
[0014] The waiting queue registration means 104 registers in the waiting queue. FIG. 2 shows a state in which only task B is registered in the waiting queue. In this state,
When the task A is registered in the wait queue by the wait queue registration unit 104, the wait queue enters a state as shown in FIG.

【0015】待ちキュー削除手段105は、待ちキュー
からの削除を行う。図3は、待ちキューにタスクB及び
タスクAが登録されている状態を示している。この状態
において、待ちキュー削除手段105により、タスクA
が待ちキューから削除されると、待ちキューは、図2に
示す如くの状態となる。
[0015] The waiting queue deleting means 105 performs deletion from the waiting queue. FIG. 3 shows a state in which task B and task A are registered in the waiting queue. In this state, the task A
Is deleted from the waiting queue, the waiting queue is in a state as shown in FIG.

【0016】尚、図2及び図3は、待ちキューにおける
各タスクの登録状態を示した図である。
FIGS. 2 and 3 are diagrams showing the registration status of each task in the waiting queue.

【0017】実行可能キューエントリ変更手段106
は、実行可能キューに登録されているタスクのエントリ
順番の変更を行う。図5は、実行可能キューに各タスク
が、タスクA,タスクB,並びにタスクCという順番で
登録されている状態を示している。この状態において、
実行可能キューエントリ変更手段106により、タスク
Bのエントリ順番が実行可能キューの最後尾に変更され
ると、実行可能キューは、図6に示す如くの状態とな
る。
Executable queue entry changing means 106
Changes the entry order of the tasks registered in the executable queue. FIG. 5 shows a state in which each task is registered in the executable queue in the order of task A, task B, and task C. In this state,
When the executable queue entry changing unit 106 changes the entry order of the task B to the end of the executable queue, the executable queue enters a state as shown in FIG.

【0018】尚、図5及び図6は、実行可能キューに登
録されている各タスクのエントリ順番を示した図であ
る。
FIGS. 5 and 6 are diagrams showing the entry order of each task registered in the executable queue.

【0019】データ読み込み手段101は、記憶部11
に存在するスケジューラ処理状態記憶領域107とタス
ク識別子記憶領域108とを読み込む。
The data reading means 101 includes a storage unit 11
Is read from the scheduler processing state storage area 107 and the task identifier storage area 108 existing in

【0020】次に、本実施の形態における全体の動作に
ついて詳細に説明する。
Next, the overall operation of this embodiment will be described in detail.

【0021】なお、初期状態として、図2に示す如く
に、待ちキューにはタスクBが登録されており、図5に
示す如くに、実行可能キューには、タスクA,タスク
B,並びにタスクCがそれぞれ登録されており、現在実
行中のタスクはタスクAであるものとして説明を行う。
As an initial state, a task B is registered in the waiting queue as shown in FIG. 2, and a task A, a task B, and a task C are registered in the executable queue as shown in FIG. It is assumed that the task currently being executed is task A.

【0022】先ず、待ちシステムコール、スケジュー
ラ、割り込み処理用起床システムコールにおける動作に
ついて説明する。
First, the operations in the waiting system call, the scheduler, and the wake-up system call for interrupt processing will be described.

【0023】タスクAが待ちシステムコールを発行する
と、図7に示す如くに、処理ステップ700において、
待ち状態に遷移するかどうかの判断が行われる。待ち状
態に遷移しない場合には処理ステップ703の処理に進
む。尚、本実施の形態では、待ち状態に遷移するので処
理ステップ701へ進む。
When task A issues a wait system call, as shown in FIG.
A determination is made whether to transition to a wait state. If the state does not transition to the wait state, the process proceeds to the processing step 703. In this embodiment, since the state transits to the waiting state, the process proceeds to the processing step 701.

【0024】処理ステップ701では、待ちキュー登録
手段104により、タスクAを待ちキューに登録する。
登録後の待ちキューの構成は、図3のようになる。次
に、処理ステップ702でタスクAを待ち状態に設定
し、処理ステップ703で割り込み許可状態とし、処理
ステップ704でスケジューラを呼び出す。図7は待ち
システムコールの動作を示すフローチャートである。
In processing step 701, the task A is registered in the waiting queue by the waiting queue registration means 104.
The configuration of the waiting queue after registration is as shown in FIG. Next, the task A is set to the waiting state in the processing step 702, the interruption permission state is set in the processing step 703, and the scheduler is called in the processing step 704. FIG. 7 is a flowchart showing the operation of the waiting system call.

【0025】スケジューラでは、図8に示す如くに、処
理ステップ800で割り込み禁止にし、処理ステップ8
01で、スケジューラ処理状態記憶領域変更手段103
により、スケジューラ処理状態記憶領域107にスケジ
ューラが処理状態であることを設定する。処理ステップ
802では、実行可能なタスクが存在する実行可能キュ
ーの検索を行う。本実施の形態では、タスクA、タスク
B、並びにタスクCが登録されている実行可能キューが
検索の対象となる。実行可能キューの構成は図5のよう
になっている。
In the scheduler, as shown in FIG. 8, interrupts are disabled in processing step 800, and
01, the scheduler processing state storage area changing means 103
Thus, the scheduler is set to the processing state in the scheduler processing state storage area 107. In processing step 802, an executable queue in which an executable task exists is searched. In the present embodiment, the executable queue in which task A, task B, and task C are registered is to be searched. The configuration of the executable queue is as shown in FIG.

【0026】処理ステップ803では、登録されている
タスクが待ち状態がどうかの判断が行われる。先頭に登
録されているタスクAは待ち状態となっているので、処
理ステップ804に進む。処理ステップ804では、タ
スク識別子記憶領域変更手段102により、タスク識別
子記憶領域108の設定を行う。本実施の形態では、タ
スクAの次に登録されているタスクBの識別子を、タス
ク識別子記憶領域108に設定する。
In processing step 803, it is determined whether the registered task is in a waiting state. Since the task A registered at the head is in the waiting state, the process proceeds to the processing step 804. In processing step 804, the task identifier storage area changing unit 102 sets the task identifier storage area 108. In the present embodiment, the identifier of task B registered after task A is set in task identifier storage area 108.

【0027】次に処理ステップ805で割り込み許可、
処理ステップ806で割り込み禁止にする。この割り込
み許可、割り込み禁止のステップ時に割り込み要求が発
生し、割り込み処理で、割り込み処理用の起床システム
コールがタスクBを対象に発行されたとする。図8はス
ケジューラの動作を示すフローチャートである。
Next, in processing step 805, an interrupt is enabled,
In processing step 806, interrupts are disabled. It is assumed that an interrupt request is generated in the interrupt enable / disable step, and a wake-up system call for interrupt processing is issued for task B in the interrupt processing. FIG. 8 is a flowchart showing the operation of the scheduler.

【0028】割り込み処理用起床システムコールでは、
図9に示す如くに、処理ステップ900で対象タスクが
起床すべきタスクかどうかの判断を行う。本実施の形態
では、タスクBは待ち状態にあるので処理ステップ90
1に進む。処理ステップ901では、待ちキュー削除手
段105により、待ちキューからタスクBを削除する。
削除後の待ちキューの構成は、図4のようになる。
In the wake-up system call for interrupt processing,
As shown in FIG. 9, in a processing step 900, it is determined whether the target task is a task to be woken up. In the present embodiment, the task B is in the waiting state, so the processing step 90
Proceed to 1. In processing step 901, the task B is deleted from the waiting queue by the waiting queue deleting unit 105.
The configuration of the waiting queue after deletion is as shown in FIG.

【0029】次に、処理ステップ902に進み、実行可
能キューエントリ変更手段106により、タスクBのエ
ントリ順番を最後尾に変更する。変更後の実行可能キュ
ーの構成は図6のようになる。処理ステップ903で
は、タスクBの状態の変更などを行う。処理ステップ9
04で、データ読み込み手段101によりスケジューラ
処理状態記憶領域107を読み込み、スケジューラが処
理中かどうかの判断を行う。
Next, the process proceeds to processing step 902, where the executable queue entry changing means 106 changes the entry order of the task B to the last. The configuration of the executable queue after the change is as shown in FIG. In processing step 903, the state of task B is changed. Processing Step 9
At 04, the data reading unit 101 reads the scheduler processing state storage area 107, and determines whether the scheduler is processing.

【0030】本実施の形態では、スケジューラが処理中
のため、処理ステップ905に進む。処理ステップ90
5では、データ読み込み手段101により、タスク識別
子記憶領域108に設定されているタスク識別子を読み
込み、起床させているタスクの識別子と同一かどうかを
判断する。
In the present embodiment, since the scheduler is in the process, the process proceeds to the process step 905. Processing step 90
In step 5, the data reading means 101 reads the task identifier set in the task identifier storage area 108, and determines whether the read task identifier is the same as the identifier of the task to be woken up.

【0031】本実施の形態では、タスクBで同一のた
め、処理ステップ906で、タスク識別子記憶領域変更
手段102により、タスクBの次に登録されていたタス
クCの識別子を、タスク識別子記憶領域108に設定
し、割り込み処理用起床システムコールは終了する。割
り込み処理用起床処理システムコールが終了すると、そ
の後、割り込み処理も終了し、スケジューラの処理に戻
る。図9は割り込み処理用起床システムコールの動作を
示すフローチャートである。
In this embodiment, since the task B is the same, the task identifier storage area changing means 102 changes the identifier of the task C registered after the task B by the task identifier storage area changing means 102 in the processing step 906. And the wake-up system call for interrupt processing ends. When the wake-up processing system call for interrupt processing ends, thereafter, the interrupt processing also ends, and the processing returns to the scheduler. FIG. 9 is a flowchart showing the operation of the wake-up system call for interrupt processing.

【0032】スケジューラでは、図8の処理ステップ8
07で、データ読み込み手段101によりタスク識別子
記憶領域108からタスク識別子を読み込む。本実施の
形態では、割り込み処理用起床システムコールで設定さ
れたタスクCの識別子が読み込まれる。次に、処理ステ
ップ803の判断処理を行う。タスクCは実行可能状態
なので、処理ステップ808のタスク切り替え処理で、
タスクCを実行状態にし、タスクCに実行権を移行す
る。
In the scheduler, processing step 8 in FIG.
At 07, the data reading means 101 reads the task identifier from the task identifier storage area 108. In the present embodiment, the identifier of the task C set in the wake-up system call for interrupt processing is read. Next, the determination processing of processing step 803 is performed. Since the task C is in the executable state, the task switching processing in the processing step 808
The task C is set to the execution state, and the execution right is transferred to the task C.

【0033】次に、待ちシステムコール、スケジュー
ラ、タスク用起床システムコールにおける動作について
説明する。尚、構成については、前記実施の形態と同様
である。
Next, the operations in the waiting system call, the scheduler, and the task wakeup system call will be described. The configuration is the same as in the above embodiment.

【0034】図7に示す如くに、タスクAが待ちシステ
ムコールを発行すると、処理ステップ700で待ち状態
に遷移するかどうかの判断を行う。本実施の形態では、
待ち状態に遷移するので処理ステップ701へ進む。処
理ステップ701では、待ちキュー登録手段104によ
り、タスクAを待ちキューに登録する。登録後の待ちキ
ューの構成は、図3のようになる。次に、処理ステップ
702でタスクAを待ち状態に設定し、処理ステップ7
03で割り込み許可、処理ステップ704でスケジュー
ラを呼び出す。
As shown in FIG. 7, when the task A issues a wait system call, it is determined in a processing step 700 whether or not a transition is made to the wait state. In the present embodiment,
Since the state transits to the waiting state, the process proceeds to processing step 701. In processing step 701, the task A is registered in the waiting queue by the waiting queue registration unit 104. The configuration of the waiting queue after registration is as shown in FIG. Next, task A is set to a waiting state in processing step 702, and processing step 7
In step 03, the interrupt is permitted, and in step 704, the scheduler is called.

【0035】スケジューラでは、図8に示す如くに、処
理ステップ800で割り込み禁止にし、処理ステップ8
01で、スケジューラ処理状態記憶領域変更手段103
により、スケジューラ処理状態記憶領域107にスケジ
ューラが処理状態であることを設定する。処理ステップ
802では、実行可能なタスクが存在する実行可能キュ
ーの検索を行う。
In the scheduler, as shown in FIG. 8, interrupts are disabled in processing step 800, and
01, the scheduler processing state storage area changing means 103
Thus, the scheduler is set to the processing state in the scheduler processing state storage area 107. In processing step 802, an executable queue in which an executable task exists is searched.

【0036】本実施の形態では、タスクA,タスクB,
並びにタスクCが登録されている実行可能キューが検索
の対象となる。実行可能キューの構成は図5のようにな
っている。処理ステップ803で、登録されているタス
クが待ち状態がどうかの判断を行う。先頭に登録されて
いるタスクAは待ち状態となっているので、処理ステッ
プ804に進む。
In this embodiment, tasks A, B,
The executable queue in which the task C is registered is a search target. The configuration of the executable queue is as shown in FIG. In processing step 803, it is determined whether the registered task is in a waiting state. Since the task A registered at the head is in the waiting state, the process proceeds to the processing step 804.

【0037】処理ステップ804では、タスク識別子記
憶領域変更手段102により、タスク識別子記憶領域1
08の設定を行う。本実施の形態では、タスクAの次に
登録されているタスクBの識別子を、タスク識別子記憶
領域108に設定する。次に処理ステップ805で割り
込み許可、処理ステップ806で割り込み禁止にする。
In the processing step 804, the task identifier storage area 1
08 is set. In the present embodiment, the identifier of task B registered after task A is set in task identifier storage area 108. Next, in step 805, interrupts are enabled, and in step 806, interrupts are disabled.

【0038】続いて、処理ステップ807では、データ
読み込み手段101によりタスク識別子記憶領域108
よりタスク識別子を読み込む。本実施の形態では、処理
ステップ804で設定されたタスクBの識別子が読み込
まれ、再度、処理ステップ803でタスクBの状態を判
断する。タスクBも待ち状態のため、再度、処理ステッ
プ804,805,806,807と進み、処理ステッ
プ803でタスクCの状態を判断し実行可能状態のた
め、タスクCを実行状態にし、タスクCに実行権を移行
する。タスクCでは、タスク用起床システムコールをタ
スクBを対象に発行する。
Subsequently, in processing step 807, the task identifier storage area 108 is
Read task identifier from In this embodiment, the identifier of task B set in processing step 804 is read, and the state of task B is determined again in processing step 803. Since the task B is also in the waiting state, the process proceeds to the processing steps 804, 805, 806, and 807 again. In the processing step 803, the state of the task C is determined. Transfer rights. In task C, a task wakeup system call is issued to task B.

【0039】タスク用起床システムコールでは、図10
に示す如くに、処理ステップ1000で対象タスクが起
床すべきタスクかどうかの判断を行う。本実施の形態で
は、タスクBは待ち状態にあるので処理ステップ100
1に進む。処理ステップ1001では、待ちキュー削除
手段105により、待ちキューからタスクBを削除す
る。削除後の待ちキューの構成は図4のようになる。
In the task wake-up system call, FIG.
As shown in (1), it is determined in processing step 1000 whether the target task is a task to be woken up. In the present embodiment, since task B is in the waiting state, processing step 100
Proceed to 1. In processing step 1001, the task B is deleted from the waiting queue by the waiting queue deleting unit 105. The configuration of the waiting queue after deletion is as shown in FIG.

【0040】次に、処理ステップ1002に進み、実行
可能キューエントリ変更手段106により、タスクBの
エントリ順番を最後尾に変更する。変更後の実行可能キ
ューの構成は図6のようになる。処理ステップ1003
では、タスクBの状態の変更などを行う。処理ステップ
1004で割り込み許可、処理ステップ1005でスケ
ジューラを呼び出す。尚、図10はタスク用起床システ
ムコールの動作を示すフローチャートである。
Next, the process proceeds to processing step 1002, where the executable queue entry changing means 106 changes the entry order of the task B to the last. The configuration of the executable queue after the change is as shown in FIG. Processing step 1003
Then, the state of the task B is changed. In processing step 1004, interruption is permitted, and in processing step 1005, the scheduler is called. FIG. 10 is a flowchart showing the operation of the task wake-up system call.

【0041】図8に示す如くに、スケジューラでは、処
理ステップ800で割り込み禁止にし、処理ステップ8
01で、スケジューラ処理状態記憶領域変更手段103
により、スケジューラ処理状態記憶領域107にスケジ
ューラが処理状態であることを設定する。処理ステップ
802では、実行可能なタスクが存在する実行可能キュ
ーの検索を行う。
As shown in FIG. 8, the scheduler disables the interrupt at processing step 800, and
01, the scheduler processing state storage area changing means 103
Thus, the scheduler is set to the processing state in the scheduler processing state storage area 107. In processing step 802, an executable queue in which an executable task exists is searched.

【0042】本実施の形態では、タスクA,タスクC,
並びにタスクBが登録されている実行可能キューが検索
の対象となる。実行可能キューの構成は図6のようにな
っている。
In this embodiment, tasks A, C,
In addition, the executable queue in which the task B is registered is a search target. The configuration of the executable queue is as shown in FIG.

【0043】処理ステップ803では、登録されている
タスクが待ち状態がどうかの判断を行う。先頭に登録さ
れているタスクAは待ち状態となっているので、処理ス
テップ804に進む。処理ステップ804では、タスク
識別子記憶領域変更手段102により、タスク識別子記
憶領域108の設定を行う。本実施の形態では、タスク
Aの次に登録されているタスクCの識別子を、タスク識
別子記憶領域108に設定する。
In processing step 803, it is determined whether the registered task is in a waiting state. Since the task A registered at the head is in the waiting state, the process proceeds to the processing step 804. In processing step 804, the task identifier storage area changing unit 102 sets the task identifier storage area 108. In the present embodiment, the identifier of the task C registered after the task A is set in the task identifier storage area 108.

【0044】次に、処理ステップ805で割り込み許
可、処理ステップ806で割り込み禁止にする。処理ス
テップ807では、データ読み込み手段101によりタ
スク識別子記憶領域108よりタスク識別子を読み込
む。本実施の形態では、処理ステップ804で設定され
た、タスクCの識別子が読み込まれ、再度、処理ステッ
プ803でタスクCの状態を判断する。タスクCは実行
可能状態のため、タスクCを実行状態にし、タスクCに
実行権を移行する。
Next, at step 805, interrupts are enabled, and at step 806, interrupts are disabled. In processing step 807, the data reading means 101 reads a task identifier from the task identifier storage area 108. In the present embodiment, the identifier of the task C set in the processing step 804 is read, and the state of the task C is determined again in the processing step 803. Since the task C is in the executable state, the task C is set to the execution state, and the execution right is transferred to the task C.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
リアルタイムOSにおいて、待ちシステムコールでの実
行可能キューからの削除処理を行わないようにし、待ち
システムコールの割り込み禁止時間を削減するようにし
たので、待ちシステムコールでの割り込み禁止時間を削
減することができ、この結果、リアルタイムOSの重要
な性能指標である、ユーザコンピュータシステムにおけ
る即時性を向上させることができる。
As described above, according to the present invention,
In the real-time OS, the process of deleting from the executable queue in the waiting system call is not performed, and the interrupt disabling time of the waiting system call is reduced. Therefore, the interrupt disabling time of the waiting system call can be reduced. As a result, the immediacy of the user computer system, which is an important performance index of the real-time OS, can be improved.

【0046】また、ユーザコンピュータシステムにおけ
る即時性を向上させることができるため、従来使用して
いたCPUより多少処理性能が劣るCPU(値段が安い
等)を使用しても、相対的な処理性能は変わらず、安価
なシステムを構成することができる。
In addition, since the immediacy of the user computer system can be improved, the relative processing performance can be improved even if a CPU having a slightly lower processing performance than a conventionally used CPU (such as a lower price) is used. As it is, an inexpensive system can be configured.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のリアルタイムOSにおけるタスクの起
床及び待ち処理方法を実現するためのコンピュータシス
テムの一例を示したブロック図である。
FIG. 1 is a block diagram showing an example of a computer system for realizing a task wake-up and wait processing method in a real-time OS according to the present invention.

【図2】待ちキューにおける各タスクの登録状態を示し
た図である。
FIG. 2 is a diagram showing a registration state of each task in a waiting queue.

【図3】待ちキューにおける各タスクの登録状態を示し
た図である。
FIG. 3 is a diagram showing a registration state of each task in a waiting queue.

【図4】待ちキューにおける各タスクの登録状態を示し
た図である。
FIG. 4 is a diagram showing a registration state of each task in a waiting queue.

【図5】実行可能キューに登録されている各タスクのエ
ントリ順番を示した図である。
FIG. 5 is a diagram showing an entry order of each task registered in an executable queue.

【図6】実行可能キューに登録されている各タスクのエ
ントリ順番を示した図である。
FIG. 6 is a diagram illustrating an entry order of each task registered in an executable queue.

【図7】待ちシステムコールの動作を示すフローチャー
トである。
FIG. 7 is a flowchart showing the operation of a waiting system call.

【図8】スケジューラの動作を示すフローチャートであ
る。
FIG. 8 is a flowchart showing the operation of the scheduler.

【図9】割り込み処理用起床システムコールの動作を示
すフローチャートである。
FIG. 9 is a flowchart showing an operation of an interrupt processing wake-up system call;

【図10】タスク用起床システムコールの動作を示すフ
ローチャートである。
FIG. 10 is a flowchart showing an operation of a task wakeup system call.

【符号の説明】[Explanation of symbols]

10 制御部 11 記憶部 100 データ書き込み手段 101 データ読み込み手段 102 タスク識別子記憶領域変更手段 103 スケジューラ処理状態記憶領域変更手段 104 待ちキュー登録手段 105 待ちキュー削除手段 106 実行可能キューエントリ変更手段 107 スケジューラ処理状態記憶領域 108 タスク識別子記憶領域 DESCRIPTION OF SYMBOLS 10 Control part 11 Storage part 100 Data writing means 101 Data reading means 102 Task identifier storage area change means 103 Scheduler processing state storage area change means 104 Queue registration means 105 Queue deletion means 106 Executable queue entry change means 107 Scheduler processing state Storage area 108 Task identifier storage area

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年7月1日(1999.7.1)[Submission date] July 1, 1999 (1999.7.1)

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】特許請求の範囲[Correction target item name] Claims

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【特許請求の範囲】[Claims]

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0008】[0008]

【課題を解決するための手段】請求項1に記載のリアル
タイムOSにおけるタスクの起床及び待ち処理装置は、
情報を制御するデータ書き込み手段とデータ読み込み手
段とを含む制御部と、スケジューラ処理状態記憶領域及
びタスク識別子記憶領域を含む記憶部とを具備するリア
ルタイムOSにおけるタスクの起床及び待ち処理装置で
あって、データ書き込み手段は、記憶部に存在するタス
ク識別子記憶領域を変更制御するタスク識別子記憶領域
変更手段と、記憶部に存在するスケジューラ処理状態記
憶領域を変更制御するスケジューラ処理状態記憶領域変
更手段と、待ちキューへのタスクの登録を行う待ちキュ
ー登録手段と、待ちキューからタスクの削除を行う待ち
キュー削除手段と、実行可能キューに登録されているタ
スクのエントリ順番の変更を行う実行可能キューエント
リ変更手段とを備えることを特徴とする。また、データ
読み込み手段は、記憶部に存在するスケジューラ処理状
態記憶領域と、タスク識別子記憶領域とを制御部内に読
み込むようにすることができる。また、制御部は、待ち
システムコール時においては、データ書き込み手段に含
まれる待ちキュー登録手段により、待ちキューへのタス
クの登録を行い、起床システムコール時においては、デ
ータ書き込み手段に含まれる待ちキュー削除手段及び実
行可能キューエントリ変更手段により、待ちキューから
のタスクの削除及び実行可能キュー内のエントリ順番の
変更を行うようにすることができる。請求項4に記載の
リアルタイムOSにおけるタスクの起床及び待ち処理方
法は、待ちシステムコール時において、待ちキューへの
タスクの登録を行い、起床システムコール時において、
待ちキューからのタスクの削除及び実行可能キュー内の
エントリ順番の変更をそれぞれ行うことにより、待ちシ
ステムコールでの実行可能キューからの削除を行わない
ようにしたことを特徴とする。
According to a first aspect of the present invention, there is provided a task wake-up and wait processing apparatus in a real-time OS.
Data writer and data reader to control information
And a scheduler processing state storage area.
And a storage unit including a task identifier storage area.
Task wake-up and waiting processor in real-time OS
The data writing unit includes a task identifier storage region changing unit that controls change of a task identifier storage region existing in the storage unit, and a scheduler processing state storage region changing unit that controls change of a scheduler processing state storage region existing in the storage unit. And a waiting queue registering means for registering a task in the waiting queue, a waiting queue deleting means for deleting a task from the waiting queue, and an executable queue for changing the entry order of the tasks registered in the executable queue And entry change means. Further, the data reading unit can read the scheduler processing state storage area and the task identifier storage area existing in the storage unit into the control unit. Also, the control unit registers the task in the waiting queue by the waiting queue registration unit included in the data writing unit at the time of the waiting system call, and the waiting queue included in the data writing unit during the wake-up system call. The deletion unit and the executable queue entry changing unit can delete a task from the waiting queue and change the order of entries in the executable queue. A task wake-up and wait processing method in a real-time OS according to claim 4 registers a task in a wait queue during a wait system call,
By deleting a task from the waiting queue and changing the order of entries in the executable queue, deletion of the task from the executable queue by the waiting system call is not performed.

【手続補正3】[Procedure amendment 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0029[Correction target item name] 0029

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0029】次に、処理ステップ902に進み、実行可
能キューエントリ変更手段106により、タスクBのエ
ントリ順番を最後尾に変更する。この際、タスクBの次
に登録されているタスクCを保持しておく。変更後の実
行可能キューの構成は図6のようになる。処理ステップ
903では、タスクBの状態の変更などを行う。処理ス
テップ904で、データ読込手段101によりスケジュ
ーラ処理状態記憶領域107を読み込み、スケジューラ
が処理中かどうかの判断を行う。
Next, the process proceeds to processing step 902, where the executable queue entry changing means 106 changes the entry order of the task B to the last. At this time, next to task B
The task C registered in is stored. The configuration of the executable queue after the change is as shown in FIG. In processing step 903, the state of task B is changed. In processing step 904, the scheduler processing state storage area 107 is read by the data reading means 101, and it is determined whether the scheduler is processing.

【手続補正書】[Procedure amendment]

【提出日】平成11年10月12日(1999.10.
12)
[Submission date] October 12, 1999 (1999.10.
12)

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】特許請求の範囲[Correction target item name] Claims

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【特許請求の範囲】[Claims]

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0008】[0008]

【課題を解決するための手段】請求項1に記載のリアル
タイムOSにおけるタスクの起床及び待ち処理装置は、
情報を制御するデータ書き込み手段とデータ読み込み手
段とを含む制御部と、スケジューラ処理状態記憶領域及
びタスク識別子記憶領域を含む記憶部とを具備するリア
ルタイムOSにおけるタスクの起床及び待ち処理装置で
あって、前記データ書き込み手段は、前記記憶部に存在
する前記タスク識別子記憶領域を変更制御するタスク識
別子記憶領域変更手段と、前記記憶部に存在する前記ス
ケジューラ処理状態記憶領域を変更制御するスケジュー
ラ処理状態記憶領域変更手段と、待ちキューへのタスク
の登録を行う待ちキュー登録手段と、待ちキューからタ
スクの削除を行う待ちキュー削除手段と、実行可能キュ
ーに登録されているタスクのエントリ順番の変更を行う
実行可能キューエントリ変更手段とを備え、前記データ
読み込み手段が、前記記憶部に存在する前記スケジュー
ラ処理状態記憶領域と、前記タスク識別子記憶領域とを
前記制御部内に読み込むとともに、前記制御部が、待ち
システムコール時においては、前記データ書き込み手段
に含まれる待ちキュー登録手段により、待ちキューへの
タスクの登録を行い、起床システムコール時において
は、前記データ書き込み手段に含まれる待ちキュー削除
手段及び前記実行可能キューエントリ変更手段により、
待ちキューからのタスクの削除及び実行可能キュー内の
エントリ順番の変更を行うで、待ちシステムコールでの
実行可能キューからの削除を行わないようにしたことを
特徴とする。請求項2に記載のリアルタイムOSにおけ
るタスクの起床及び待ち処理方法は、待ちシステムコー
ル時において、待ちキューへのタスクの登録を行い、起
床システムコール時において、待ちキューからのタスク
の削除及び実行可能キュー内のエントリ順番の変更をそ
れぞれ行うことにより、待ちシステムコールでの実行可
能キューからの削除を行わないようにしたことを特徴と
する。
According to a first aspect of the present invention, there is provided a task wake-up and wait processing apparatus in a real-time OS.
A task wake-up and wait processing device in a real-time OS comprising a control unit including a data writing unit and a data reading unit for controlling information, and a storage unit including a scheduler processing state storage area and a task identifier storage area, The data writing unit includes a task identifier storage area change unit that controls change of the task identifier storage area existing in the storage unit, and a scheduler processing state storage area that controls change of the scheduler processing state storage area existing in the storage unit. Change means, wait queue registration means for registering a task in the wait queue, wait queue deletion means for deleting a task from the wait queue, and execution for changing the entry order of tasks registered in the executable queue Means for changing possible queue entries , wherein the data
Reading means for storing the schedule stored in the storage unit;
And a task identifier storage area.
While reading into the control unit, the control unit waits
In a system call, the data writing means
By the waiting queue registration means included in
Register the task, and at the time of wake-up system call
Deletes the waiting queue included in the data writing means
Means and said executable queue entry changing means,
Delete tasks from the waiting queue and
By changing the entry order, the wait system call
It is characterized in that deletion from the executable queue is not performed . A task wake-up and wait processing method in a real-time OS according to claim 2 registers a task in a wait queue during a wait system call, and deletes and executes a task from the wait queue during a wake-up system call. By changing the order of entries in the queue, deletion from the executable queue by a waiting system call is not performed.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 待ちシステムコール時、実行可能キュー
からの削除を行わないようにする手段を備えたことを特
徴とするリアルタイムOSにおけるタスクの起床及び待
ち処理装置。
1. A task wake-up and wait processing apparatus in a real-time OS, comprising means for preventing deletion from an executable queue at the time of a wait system call.
【請求項2】 前記待ちシステムコール時、実行可能キ
ューからの削除を行わないようにする手段は、 情報を制御するデータ書き込み手段とデータ読み込み手
段とを含む制御部と、 情報を記憶する領域である記憶部と、 により構成されることを特徴とする請求項1に記載のリ
アルタイムOSにおけるタスクの起床及び待ち処理装
置。
2. A means for preventing deletion from the executable queue at the time of the waiting system call, comprising: a control unit including data writing means for controlling information and data reading means; and an area for storing information. The apparatus for wake-up and waiting for a task in a real-time OS according to claim 1, wherein the apparatus comprises: a storage unit;
【請求項3】 前記記憶部は少なくとも、 スケジューラ処理状態記憶領域と、 タスク識別子記憶領域と、 を含んで構成されることを特徴とする請求項2に記載の
リアルタイムOSにおけるタスクの起床及び待ち処理装
置。
3. The task wake-up and waiting process in the real-time OS according to claim 2, wherein the storage unit includes at least a scheduler processing state storage area and a task identifier storage area. apparatus.
【請求項4】 前記データ書き込み手段は、 前記記憶部に存在する前記タスク識別子記憶領域を変更
制御するタスク識別子記憶領域変更手段と、 前記記憶部に存在する前記スケジューラ処理状態記憶領
域を変更制御するスケジューラ処理状態記憶領域変更手
段と、 待ちキューへのタスクの登録を行う待ちキュー登録手段
と、 待ちキューからタスクの削除を行う待ちキュー削除手段
と、 実行可能キューに登録されているタスクのエントリ順番
の変更を行う実行可能キューエントリ変更手段と、 により構成されることを特徴とする請求項3に記載のリ
アルタイムOSにおけるタスクの起床及び待ち処理装
置。
4. The data writing unit includes: a task identifier storage area change unit that controls change of the task identifier storage area existing in the storage unit; and a change control of the scheduler processing state storage area existing in the storage unit. Scheduler processing state storage area changing means, waiting queue registering means for registering a task in the waiting queue, waiting queue deleting means for deleting a task from the waiting queue, entry order of tasks registered in the executable queue 4. The task wake-up and wait processing device in the real-time OS according to claim 3, further comprising: an executable queue entry change unit that changes the task.
【請求項5】 前記データ読み込み手段は、前記記憶部
に存在する前記スケジューラ処理状態記憶領域と、前記
タスク識別子記憶領域とを、前記制御部内に読み込むこ
とを特徴とする請求項2,3,または4に記載のリアル
タイムOSにおけるタスクの起床及び待ち処理装置。
5. The data reading unit according to claim 2, wherein the scheduler processing state storage area and the task identifier storage area existing in the storage unit are read into the control unit. 4. The apparatus for awakening and waiting for a task in the real-time OS according to 4.
【請求項6】 前記制御部は、待ちシステムコール時に
おいては、前記データ書き込み手段に含まれる待ちキュ
ー登録手段により、待ちキューへのタスクの登録を行
い、起床システムコール時においては、前記データ書き
込み手段に含まれる待ちキュー削除手段及び前記実行可
能キューエントリ変更手段により、待ちキューからのタ
スクの削除及び実行可能キュー内のエントリ順番の変更
を行うことを特徴とする請求項4に記載のリアルタイム
OSにおけるタスクの起床及び待ち処理装置。
6. The control unit registers a task in a waiting queue by a waiting queue registration unit included in the data writing unit during a waiting system call, and writes the data in a waiting system call during a wake-up system call. 5. The real-time OS according to claim 4, wherein the task is deleted from the waiting queue and the order of entries in the executable queue is changed by the waiting queue deleting means and the executable queue entry changing means included in the means. Task wake-up and waiting processor.
【請求項7】 待ちシステムコール時、実行可能キュー
からの削除を行わないようにしたことを特徴とするリア
ルタイムOSにおけるタスクの起床及び待ち処理方法。
7. A task wake-up and wait processing method in a real-time OS, wherein deletion from an executable queue is not performed during a wait system call.
【請求項8】 待ちシステムコール時において、待ちキ
ューへのタスクの登録を行い、起床システムコール時に
おいて、待ちキューからのタスクの削除及び実行可能キ
ュー内のエントリ順番の変更をそれぞれ行うことによ
り、待ちシステムコールでの実行可能キューからの削除
を行わないようにしたことを特徴とする請求項7に記載
のリアルタイムOSにおけるタスクの起床及び待ち処理
方法。
8. At the time of a waiting system call, a task is registered in a waiting queue, and at the time of a wakeup system call, a task is deleted from the waiting queue and the order of entries in the executable queue is changed. 8. The method according to claim 7, wherein the task is not deleted from the executable queue by the waiting system call.
JP10247758A 1998-08-19 1998-08-19 Method and device for task rising and wait processing in real time os Pending JP2000066905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10247758A JP2000066905A (en) 1998-08-19 1998-08-19 Method and device for task rising and wait processing in real time os

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10247758A JP2000066905A (en) 1998-08-19 1998-08-19 Method and device for task rising and wait processing in real time os

Publications (1)

Publication Number Publication Date
JP2000066905A true JP2000066905A (en) 2000-03-03

Family

ID=17168234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10247758A Pending JP2000066905A (en) 1998-08-19 1998-08-19 Method and device for task rising and wait processing in real time os

Country Status (1)

Country Link
JP (1) JP2000066905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111216A (en) * 2019-12-24 2020-05-08 北京奇艺世纪科技有限公司 Matching method, device, server and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111111216A (en) * 2019-12-24 2020-05-08 北京奇艺世纪科技有限公司 Matching method, device, server and storage medium
CN111111216B (en) * 2019-12-24 2024-02-02 北京奇艺世纪科技有限公司 Matching method, device, server and storage medium

Similar Documents

Publication Publication Date Title
US5361375A (en) Virtual computer system having input/output interrupt control of virtual machines
US5692204A (en) Method and apparatus for computer system power management
US6513057B1 (en) Heterogeneous symmetric multi-processing system
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
JPH05108218A (en) Computer system
JPS62184544A (en) Virtual computer system
JPH04284548A (en) Data base exclusive controlling system
JP2000066905A (en) Method and device for task rising and wait processing in real time os
JP2597283B2 (en) Scheduling method for interrupt
JPH04186453A (en) File transfer system
JPH0414376B2 (en)
JP2511544B2 (en) System definition change method
JPH0762828B2 (en) Emulation method
JPH07141207A (en) Information processing system
JPH10247161A (en) Memory management system
JP2768878B2 (en) Data processing device, method for synchronizing instruction execution, method for saving instruction address when exception occurs, and method for invalidating instruction processing when exception occurs
JPH0447854B2 (en)
JP2000194554A (en) Arithmetic processor
JPH03164924A (en) Magnetic disk access system
JPH05120012A (en) Exception processor
JPS6252900B2 (en)
JPH0628303A (en) Communication processor
JP2004021610A (en) Task managing device
JP2001297007A (en) Computer control method and computer controlled by the method
JPH06259383A (en) Method and device for interruption control