JPH01196656A - Task switching system - Google Patents

Task switching system

Info

Publication number
JPH01196656A
JPH01196656A JP2235988A JP2235988A JPH01196656A JP H01196656 A JPH01196656 A JP H01196656A JP 2235988 A JP2235988 A JP 2235988A JP 2235988 A JP2235988 A JP 2235988A JP H01196656 A JPH01196656 A JP H01196656A
Authority
JP
Japan
Prior art keywords
processor
task
executed
operation system
executes
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
JP2235988A
Other languages
Japanese (ja)
Inventor
Toshiko Kuwahara
久和原 寿子
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP2235988A priority Critical patent/JPH01196656A/en
Publication of JPH01196656A publication Critical patent/JPH01196656A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To effectively use an operation system processor by determining a processor, which executes a task, according to the processor block of a displaying means to be provided in the task. CONSTITUTION:A displaying means A is provided in the task in order to display the respective processor blocks according to information which show whether a task 3 can be executed only by an operation system processor 1 or can be executed by an application program processor 2 as well. Then, a processor switching means B is provided to determine the processor, which executes the task 3, according to the processor block and a processor updating means is equipped to update the displaying means A on the basis of these information in the task 3. Thus, the operation system processor 1 can be effectively used and the system of multiprocessor constitution can be full used.

Description

【発明の詳細な説明】 〔厘東上の利用分野〕 本発明はタスク切換え方式、特に1.主としてオペレー
ションシステム’e実行fるO87’ロセツサと、アプ
リケーションプログラムラ美行するAPプロセッサとを
有するマルチプロセッサシステムにおけるタスク切換え
方式に関する。
[Detailed Description of the Invention] [Field of Application] The present invention relates to a task switching method, particularly 1. The present invention mainly relates to a task switching method in a multiprocessor system having an O87 processor that executes an operation system and an AP processor that executes an application program.

〔従来の技術〕[Conventional technology]

従来、この棟のタスク切換えはオペレーションシステム
(以下O8と記す)割シ込みにより、芙1甲だったタス
クを停止させ、その時のプライオリティによる定まるタ
スクを起動させるようにして行っている。
Conventionally, task switching for this building has been carried out by interrupting the operating system (hereinafter referred to as O8) by stopping the task that was No. 1 A and starting the task determined by the priority at that time.

タスクには、周知のように、OSプロセッサにおいてし
か実行できないものとOSプロセッサとアプリケーショ
ン(以下APと記す)プロセッサのいずれにおいても実
行可能なものとがあるが、各プロセッサはタスクの起動
にあ之って、このようなタスクの種別を意識することは
なかった。
As is well known, some tasks can only be executed by an OS processor, while others can be executed by both an OS processor and an application (hereinafter referred to as AP) processor. So, I was never aware of these types of tasks.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のタスク切換え方式は、タスクの切侠時に
タスクの種別を意識して行っていない九め、APプロセ
ッサで処理を行える場合でもOSプロセッサで処理をし
てしまうような場合があシ、OSプロセッサが有効に使
われていないという問題魚がある。
The conventional task switching method described above does not take into account the type of task when switching between tasks, and even if the AP processor can perform the processing, the OS processor may end up processing it. There is a problem that the OS processor is not being used effectively.

なお、タスクがAPプロセッサで処理を行える」1合と
はタスク間の同期をとらずに処理を行える場合を指す。
Note that "1 case in which a task can be processed by the AP processor" refers to a case in which processing can be performed without synchronization between tasks.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の方式は、主としてオペレーションシステム’c
実行−jるオペレーションシステムプロセッサとアプリ
ケーションプログラムを実行するアプリケーションプロ
セッサとを有するマルチプロセッサシステムにおけるタ
スク切換え方式において、そのタスクがオペレーション
システムプロセッサでしか実行できないものであるかア
プリケーションプログラムプロセッサによってでも実行
できるものでちをかを示す情報によって各々のプロセッ
サ区分を表示する之めにタスク内に設けられた表示手段
と、 プロセッサ区分に従ってそのタスクを実行するプロセッ
サを定めるプロセッサ切換手段と、タスク内の上記情報
に基づいて表示手段を更新するプロセッサ更新手段とを
有することを特徴とする。
The method of the present invention mainly uses the operation system'c
Execution - In a task switching method in a multiprocessor system having an operating system processor that executes an application program and an application processor that executes an application program, it is determined whether the task can be executed only by the operating system processor or can also be executed by the application program processor. display means provided in the task for displaying each processor classification by information indicating the processor classification; processor switching means for determining the processor to execute the task according to the processor classification; and processor updating means for updating the display means.

〔実施例〕〔Example〕

次に不発明について図面を参照して説明する。 Next, non-invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図を参照すると本実施例はOSプロセッサ1、AP
プロセッサ2.タスク3内にらす蜆在の実行可能プロセ
ッサを示す指示子Aおよび自タスクの実行可能プロセッ
サ全変更するOSコール命命令とで構成されている。4
1図においては指示子AはOSプロセッサを指定してい
る。
Referring to FIG. 1, this embodiment shows an OS processor 1, an AP
Processor 2. It consists of an indicator A that indicates the existing executable processor in task 3, and an OS call instruction that changes all executable processors of the current task. 4
In FIG. 1, the indicator A specifies the OS processor.

タスク3内には、そのタスク3がOSプロセッサ1のみ
でしか実行不可能なのか、またはOSプロセッサ1とA
Pプロセッサ2のいずれにおいても実行可能なのか全示
す情報が含まれるようになっている。
In task 3, whether task 3 can be executed only on OS processor 1 or whether OS processor 1 and A
All information indicating whether the program can be executed by any of the P processors 2 is included.

タスク3が表示子Aの指定に従ってOSプロセッサ1で
実行されている時にAPプロセッサ2でも実行できるよ
うな処理になった場合、タスク3は自分自身の処理の中
でOSコール命命令を実行 lする(第2図)。この命
令が実行されるとタスク3内の実行可能プロセッサを示
す指示子AがAPプロセッサ2に変わる(第3図)。
If task 3 is being executed on OS processor 1 according to the specification of indicator A, and the process becomes such that it can also be executed on AP processor 2, task 3 executes the OS call instruction within its own process. (Figure 2). When this instruction is executed, the indicator A indicating the executable processor in task 3 changes to AP processor 2 (FIG. 3).

その後、タスク3はAPプロセッサ2にスケジュールさ
れAPプロセッサ2によp実行される(第4図)。
Thereafter, task 3 is scheduled to the AP processor 2 and executed by the AP processor 2 (FIG. 4).

タスク3がOSプロセッサ1においてしか実行できない
ようなものになると、再度OSコール命令Cを実行し、
実行可能プロセッサを示す指示子AがOSプロセッサ1
に変わ#)OSプロセッサIKスケジュールされる(第
5図)。
When task 3 becomes something that can only be executed by OS processor 1, OS call instruction C is executed again.
The indicator A indicating an executable processor is OS processor 1.
#) The OS processor IK is scheduled (FIG. 5).

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

以上説明し之ように本発明は、自タスクによシ実行可能
プロセッサを指定する構成としたため、OSプロセッサ
を有効に利用でき、マルチプロセッサ構成のシステムを
フルに活用できるという効果がある。
As described above, the present invention has a configuration in which an executable processor is specified for the invoking task, so that the OS processor can be used effectively and a system with a multiprocessor configuration can be fully utilized.

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

男】図は本発明の一実施例を示すブロック図、第2図か
ら第5図までは本実施例の説明図である。 1・・・・・・USプロセッサ、2・川・・APプロセ
ッサ、3・・・・・・タスク。 代理人 弁理士  内 原   晋
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 to 5 are explanatory diagrams of this embodiment. 1...US processor, 2...AP processor, 3...task. Agent Patent Attorney Susumu Uchihara

Claims (1)

【特許請求の範囲】 主としてオペレーションシステムを実行するオペレーシ
ョンシステムプロセッサとアプリケーションプログラム
を実行するアプリケーションプロセッサとを有するマル
チプロセッサシステムにおけるタスク切換え方式におい
て、 そのタスクが前記オペレーションシステムプロセッサで
しか実行できないものであるか前記アプリケーションプ
ログラムプロセッサによってでも実行できるものである
かを示す情報によって各々のプロセッサ区分を表示する
ためにタスク内に設けられた表示手段と、 前記プロセッサ区分に従ってそのタスクを実行するプロ
セッサを定めるプロセッサ切換手段と、タスク内の前記
情報に基づいて前記表示手段を更新するプロセッサ更新
手段とを有することを特徴とするタスク切換え方式。
[Scope of Claims] In a task switching method in a multiprocessor system mainly having an operation system processor that executes an operation system and an application processor that executes an application program, the task can only be executed by the operation system processor. Display means provided in a task for displaying each processor classification with information indicating whether the application program can be executed by the processor; and processor switching means for determining a processor to execute the task according to the processor classification. and processor update means for updating the display means based on the information in the task.
JP2235988A 1988-02-01 1988-02-01 Task switching system Pending JPH01196656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2235988A JPH01196656A (en) 1988-02-01 1988-02-01 Task switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2235988A JPH01196656A (en) 1988-02-01 1988-02-01 Task switching system

Publications (1)

Publication Number Publication Date
JPH01196656A true JPH01196656A (en) 1989-08-08

Family

ID=12080440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2235988A Pending JPH01196656A (en) 1988-02-01 1988-02-01 Task switching system

Country Status (1)

Country Link
JP (1) JPH01196656A (en)

Similar Documents

Publication Publication Date Title
JPH0219917A (en) Multi-window control method and information processor
JP2903525B2 (en) Job management method
JPH01288954A (en) Service program execution program for multi-processor system
JPS6136850A (en) Input and output interruption information system
JPS6159539A (en) Register saving/restoration system of sub processor
JPH02272640A (en) Task switching system
JPH0341533A (en) Updating history control system
JPS5971555A (en) Performance monitoring system
JPS62202257A (en) Auxiliary processor control system
JP2000029850A (en) Task controlling method using inter-processor communication of operating system
JPS6380335A (en) Starting system for background job
JPH02277138A (en) Priority changing system
JPH01161444A (en) Virtual machine system
JPS6265134A (en) Interruption processing system
JPH0375808A (en) Software timer control system
JPH0378072A (en) Spin lock system for multiprocessor system
JPH04370831A (en) Operation mode control system
JPH01124037A (en) Memory dumping system
JPS63234330A (en) Asynchronous processing system for computer system
JPH01201730A (en) Information processor
JPS6027032A (en) Program starting method
JPH04219828A (en) Processing method for asynchronous and exceptional event
JPH02201543A (en) Processing system for privileged instruction of virtual computer
JPH0319036A (en) Dynamic dispatching system using time slice interval
JPH01183758A (en) Deciding system for program priority