JPH0365731A - Task state management system - Google Patents

Task state management system

Info

Publication number
JPH0365731A
JPH0365731A JP1201441A JP20144189A JPH0365731A JP H0365731 A JPH0365731 A JP H0365731A JP 1201441 A JP1201441 A JP 1201441A JP 20144189 A JP20144189 A JP 20144189A JP H0365731 A JPH0365731 A JP H0365731A
Authority
JP
Japan
Prior art keywords
task
service
message
state
icon
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
JP1201441A
Other languages
Japanese (ja)
Inventor
Katsutoshi Yano
勝利 矢野
Hajime Kamata
鎌田 肇
Toshimitsu Suzuki
利光 鈴木
Tamotsu Mizuguchi
有 水口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1201441A priority Critical patent/JPH0365731A/en
Publication of JPH0365731A publication Critical patent/JPH0365731A/en
Pending legal-status Critical Current

Links

Landscapes

  • Digital Computer Display Output (AREA)

Abstract

PURPOSE:To improve executing speed by managing the state change of each service task to execute the service of each icon by a picture managing task, and informing each service task of the task number of the task whose state was changed by the picture managing task. CONSTITUTION:An input/output managing means 6 processes an input signal from a pointing device 3, and executes the calculation of the coordinate position of a display 2 pointed by the pointing device 3, and informs a service task group 5 of its coordinate information, and simultaneously, it manages an icon group 4 displayed on the display 2. A task state change informing means 7 decides the presence of the change of the state of the service task, and if it was changed, it informs a task state managing means 8 of this purport, and the task state managing means 8 manages the change of the state informed from each task of the service task group 5, and informs the service task group 5 the state of what task was changed. Thus, the exchange of a message between the respective service tasks is eliminated, and processing speed can be improved.

Description

【発明の詳細な説明】 〔概  要〕 ディスプレイに表示された複数のアイコンに対応する複
数のタスクがメツセージにより各タスクの状態を交換し
ながら各アイコンのサービスを実行する方式に関し、 全サービスタスクの状態の変化を管理するタスクを設け
、状態が変化したサービスタスクがその管理タスクに状
態の変化を自己申告し、一方、管理タスクがどのサービ
スタスクの状態が変化したかを一括して各サービスタス
クにメツセージ送信することによって、各サービスタス
ク間のメツセージ交換をなくし、処理速度を向上するこ
とを目的とし、 ディスプレイおよびポインティング・デバイスを備え、
該ディスプレイ上のアイコン群からの該ポインティング
・デバイスによるアイコン選択に従って、サービス・タ
スク群中の該アイコンに対応したタスクがタスク間のメ
ツセージ交換を実行しながらサービスを実現するワーク
ステーションにおいて、ポインティング・デバイスによ
って入力される座標情報をサービス・タスク群にメツセ
ージ送信し、さらにサービス・タスク群からのメツセー
ジに従いアイコン群のディスプレイ上の表示を管理する
入出力管理手段と、前記入出力管理f段からのメツセー
ジ送信によりアクセスされたタスクが、そのアクセスに
より状態を変えることを通知するタスク状態変化通知手
段と、前記タスク状態変化通知手段によって通知される
状態の変化を、必要に応じてサービス・タスク群中の各
タスクにメツセージ送信するタスク状態管理手段とを有
するように構成する。
[Detailed Description of the Invention] [Summary] This invention relates to a method in which a plurality of tasks corresponding to a plurality of icons displayed on a display execute the service of each icon while exchanging the status of each task through messages. A task is provided to manage state changes, and the service task whose state has changed self-reports the state change to its management task, while the management task collectively informs each service task of which service task's state has changed. The purpose is to eliminate message exchange between each service task and improve processing speed by sending messages to the
A pointing device at a workstation where a task corresponding to the icon in a service task group executes a service while exchanging messages between tasks according to an icon selected by the pointing device from a group of icons on the display. an input/output management means for sending a message to the service task group of the coordinate information input by the service task group, and further managing the display of the icon group on the display according to the message from the service task group; and a message from the input/output management stage f. A task state change notification means notifies that the task accessed by transmission changes its state due to the access, and the change of state notified by the task state change notification means is sent to a service task group as necessary. and task status management means for sending messages to each task.

〔産業上の利用分野〕 本発明は、タスクの状態管理方式に係り、更に詳しくは
、ディスプレイに表示された複数のアイコンに対応する
複数のタスクがメツセージにより各タスクの状態を交換
しながら各アイコンのサービスを実行する方式に関する
[Industrial Application Field] The present invention relates to a task state management method, and more specifically, the present invention relates to a task state management method, and more specifically, a plurality of tasks corresponding to a plurality of icons displayed on a display exchange the states of each task through messages. Concerning the method of executing the service.

〔従来の技術〕[Conventional technology]

コンピュータ技術の進歩に伴って、コンピュータの使い
やすさの追求、すなわちマン−マシン・インタフェース
の充実が図られるようになっている。その一つに、アイ
コンとポインティング・デバイスの組み合わせがある。
BACKGROUND OF THE INVENTION With the advancement of computer technology, efforts are being made to make computers easier to use, that is, to improve the man-machine interface. One of these is the combination of an icon and a pointing device.

キーボードからのコマンド入力を出来るかぎり減らし、
ディスプレイ上に表示されたアイコンをマウスや電子ペ
ン、タッチパネル等のポインティング・デバイスで指し
示すことによりアイコンに対応したコマンドのサービス
を実行させるものである。その時点に実行可能なコマン
ドに対応するアイコンをコンピュータ側でディスプレイ
上に表示するので、初心者でも分かりやすく、また操作
しやすい。
Reduce command input from the keyboard as much as possible,
By pointing at an icon displayed on a display with a pointing device such as a mouse, electronic pen, or touch panel, a command service corresponding to the icon is executed. Since icons corresponding to commands that can be executed at that time are displayed on the computer's display, it is easy to understand and operate even for beginners.

第5図は、アイコンを使ったコンピュータ・サービスの
動作説明図である。
FIG. 5 is an explanatory diagram of the operation of a computer service using icons.

同図(a−1)のディスプレイには7個のアイコン、す
なわち、ドキュメント4−1、時計4−2、メモ4−3
、電話4−4、ごみ箱4−5、引き出し4−6、〒4−
7が表示されている。丁4−7はカーソルの役目をし、
ポインティング・デバイスによって手4−7を移動させ
て他のアイコンを指示することによって、各アイコンに
対応したサービスが実行される。
There are seven icons on the display in Figure (a-1): document 4-1, clock 4-2, memo 4-3.
, Telephone 4-4, Trash can 4-5, Drawer 4-6, Postal code 4-
7 is displayed. D4-7 serves as a cursor,
By moving the hand 4-7 using the pointing device to point to other icons, the service corresponding to each icon is executed.

例えば、同図(a−1)のようにドキュメント4−1を
手(カーソル)4−7で指示すれば、ドキュメントの作
成や更新、登録、削除等、ドキュメントに関するサービ
スが実行可能になる。またごみ箱4−5を指すと、ドキ
ュメント等をごみ箱に捨てたり、ごみ箱の中身を見せる
サービスが実行される。引き出し4−6を指した場合に
は、作成したドキュメントを記憶領域に格納したり、格
納しであるドキュメントを取り出したりするサービスが
実行可能になる。この他、時計4−2を指せば時刻の表
示す−ビスが、メモ4−3を指せばメモを書き込む場所
の確保が、電話4−4を指せば電話番号の検索やオート
ダイヤルサービスが実行される。
For example, by pointing to a document 4-1 with a hand (cursor) 4-7 as shown in FIG. 4(a-1), services related to the document such as creating, updating, registering, and deleting the document can be performed. Further, when pointing to the trash can 4-5, services such as discarding documents and the like into the trash can and showing the contents of the trash can are executed. When pointing to the drawer 4-6, services for storing created documents in the storage area and retrieving stored documents become executable. In addition, pointing to the clock 4-2 will display the time, pointing to the memo 4-3 will secure a place to write a memo, and pointing to the telephone 4-4 will search for a phone number or perform an auto-dial service. be done.

今、同図(a−1)のようにドキュメント41をカーソ
ルで指してアクセスすると、このアクセスによって、次
にこのドキュメントに何らかの処理を施すことになる。
Now, if the document 41 is accessed by pointing the cursor as shown in FIG.

そして、次に同図(a −2)のように、ごみ箱4−5
をアクセスすることによって、前にアクセスしたドキュ
メント4−1をごみ箱に捨てるサービスが実行される。
Then, as shown in the same figure (a-2), the trash can 4-5
By accessing , a service for discarding the previously accessed document 4-1 in the trash can is executed.

そしてこのサービスが実行されると、ドキュメント4−
1はごみ箱のなかに移され、同図(a−3)のようにド
キュメント4−1のアイコンがディスプレイ2上から消
去される。
And when this service is executed, document 4-
1 is moved to the trash can, and the icon of the document 4-1 is deleted from the display 2 as shown in FIG. 4(a-3).

一方、同図(a−1)の状態で、ドキュメント4−1を
アクセスすることなく、同図(b−1)のようにごみ箱
4−7にアクセスした場合には、同図(b−2)のよう
にごみ箱の中身をディスプレイ上に表示するサービスが
実行される。同図ではごみ箱に捨てられたドキュメント
1とドキュメント2が表示されている。
On the other hand, in the state shown in Figure (a-1), if the trash can 4-7 is accessed as shown in Figure (b-1) without accessing document 4-1, ) runs a service that displays the contents of the recycle bin on the display. In the figure, Document 1 and Document 2 which have been thrown away in the trash can are displayed.

ここで、同図(a−1〜3)の場合は、ごみ箱のサービ
スが、ごみ箱4−5にアクセスする前にドキュメント4
−1にアクセスしていることを判断して、ドキュメント
をごみ箱に捨てるサービスを実行する。これに対して、
同図(b−1,2)の場合には、ごみ箱のサービスが、
ごみ箱4−5にアクセスする前にどのアイコンにもアク
セスしていないことを判断して、ごみ箱の中身を表示す
るサービスを実行する。
Here, in the case of (a-1 to a-3) in the same figure, the recycle bin service
-1, and executes a service that throws the document into the trash can. On the contrary,
In the case of (b-1, 2) in the same figure, the trash can service is
Before accessing the trash can 4-5, it is determined that no icon has been accessed, and a service for displaying the contents of the trash can is executed.

このごみ箱のサービスのように、各アイコンに対応する
サービスはそれぞれのアイコンに対応したタスクによっ
て実行される。
Services corresponding to each icon, such as this trash can service, are executed by tasks corresponding to the respective icons.

第6図は、各アイコンのサービスに対応したタスク(サ
ービスタスク)の従来方式の動作説明図である。
FIG. 6 is an explanatory diagram of the conventional system of operations of tasks (service tasks) corresponding to the services of each icon.

ドキュメントのアイコン4−1のサービスはドキュメン
トサービスタスク5−1が、ごみ箱4−5のサービスは
ごみ箱サービスタスク5−5が実行し、その他のアイコ
ンに対しても、アイコン4−iに対してはサービスタス
ク5−iがサービスを実行する。
The service for the document icon 4-1 is executed by the document service task 5-1, the service for the trash can 4-5 is executed by the trash can service task 5-5, and for other icons as well, icon 4-i is executed by the document service task 5-1. Service task 5-i executes the service.

各アイコンに対応するサービスタスクは対等の位置づけ
にあり、その上位に画面管理タスク9および入力管理タ
スク10が存在する。入力管理タスクlOは、マウスや
電子ペン、タッチパネル等のポインティング・デバイス
を使ってアクセスされたディスプレイ上での位置座標を
計算し、画面管理タスク9にその座標を引数としたメツ
セージ11を送信する。一方、画面管理タスク9はディ
スプレイ2に表示されている全タスクの番号を管理して
おり、入力管理タスク10から送信されたメツセージ1
1の座標情報を引数としたメツセージ12を、管理して
いる全タスクに送信する。
The service tasks corresponding to each icon are placed on an equal footing, and above them are the screen management task 9 and the input management task 10. The input management task IO calculates the positional coordinates on the display accessed using a pointing device such as a mouse, an electronic pen, or a touch panel, and sends a message 11 using the coordinates as an argument to the screen management task 9. On the other hand, the screen management task 9 manages the numbers of all tasks displayed on the display 2, and the message 1 sent from the input management task 10
Message 12 with the coordinate information of 1 as an argument is sent to all tasks being managed.

今、ユーザがドキュメントのアイコン4−1を手のアイ
コン4−7でアクセスしたとする(第6図(a))。す
ると、入力管理タスク10は手4−7の座標情報を引数
とするメツセージ11を画面管理タスク9に送信し、さ
らに画面管理タスク9は管理している各サービスタスク
(5−■、5−2、・・・ 5−6)に手4−7の座標
情報を引数とするメツセージ12を送信する。
Now, suppose that the user accesses the document icon 4-1 with the hand icon 4-7 (FIG. 6(a)). Then, the input management task 10 sends a message 11 with the coordinate information of the hand 4-7 as an argument to the screen management task 9, and the screen management task 9 also sends a message to each service task (5-■, 5-2) that it manages. ,... 5-6) sends a message 12 with the coordinate information of the hand 4-7 as an argument.

次に、各サービスタスク(5−1,5−2、・・ 5−
6)は画面管理タスク9からのメツセージ12を受信し
、そのメツセージを解析し、引数である座標情報がそれ
ぞれのサービスタスクに対応するアイコンが表示しであ
る範囲に含まれるか否かを判断する。今、〒4−7の座
標はドキュメントのアイコン4−1の範囲内にあるので
、ドキュメントサービスタスク5−1は自身のアイコン
4−1がアクセスされたと判断する。また他のサービス
タスク(5−2,5−3、・・・、5−6)はアクセス
されたのが自分自身でないと判断し処理を終わる。
Next, each service task (5-1, 5-2,... 5-
6) receives the message 12 from the screen management task 9, analyzes the message, and determines whether the coordinate information as an argument is included in the range in which the icon corresponding to each service task is displayed. . Now, since the coordinates of 4-7 are within the range of the document icon 4-1, the document service task 5-1 determines that its own icon 4-1 has been accessed. Further, the other service tasks (5-2, 5-3, . . . , 5-6) determine that the person who has been accessed is not themselves and end the processing.

ドキュメントサービスタスク5−1はそのアクセスの結
果、次に何らかの処理が施されることが予想されるので
、状態を変化させて次の処理の待機状態に入る。ディス
プレイ2上では、この状態の変化を例えばドキュメント
アイコン4−1の色の反転等で表示する。
Since the document service task 5-1 is expected to perform some kind of processing next as a result of the access, it changes its state and enters a waiting state for the next processing. On the display 2, this change in status is displayed, for example, by inverting the color of the document icon 4-1.

次に、ユーザが手のアイコン4−7でごみ箱のアイコン
4−5をアクセスしたとする(同図う))。
Next, it is assumed that the user accesses the trash can icon 4-5 using the hand icon 4-7 (FIG. 3).

このアクセスに対して、入力管理タスク10は前述のよ
うに座標情報を引数とするメツセージ13を画面管理タ
スク9に送信し、画面管理タスク9は管理している全サ
ービスタスク(5−1,52、・・・、5−6)に座標
情報を引数とするメツセージ14を送信する。各サービ
スタスクはそのメツセージ14を解析し、自分自身がア
クセスされているのか否かを判断する。この場合、ごみ
箱4−5が指されているので、ごみ箱サービスタスク5
−5は自分がアクセスされたと判断し、他のサービスタ
スクはアクセスされていないので処理を終了する。
In response to this access, the input management task 10 sends the message 13 with the coordinate information as an argument to the screen management task 9 as described above, and the screen management task 9 , . . . , 5-6), the message 14 with the coordinate information as an argument is transmitted. Each service task analyzes its message 14 and determines whether it is itself being accessed. In this case, since Recycle Bin 4-5 is pointed to, Recycle Bin Service Task 5
-5 determines that it has been accessed, and other service tasks have not been accessed, so the process ends.

ごみ箱サービスタスク5−5が提供するサービスには、
ドキュメント等をごみ箱の中に捨てる処理(すなわち、
ごみ箱サービスタスクが捨てられたドキュメント等を管
理する処理)と、ごみ箱に捨てられている(すなわちご
み箱サービスタスクが管理している)ドキュメント等を
提示する処理がある。このうちのどちらのサービスを要
求されているかは、捨てられようとしているドキュメン
ト等がその時点にあるか否かで判断する。
The services provided by Trash Can Service Task 5-5 include:
The process of discarding documents etc. in the trash (i.e.
There is a process in which the trash can service task manages discarded documents, etc.) and a process in which documents, etc. that have been discarded in the trash can (that is, managed by the trash can service task) are presented. Which of these services is requested is determined based on whether or not there is a document, etc. that is about to be discarded at that time.

すなわち、ごみ箱サービスタスク5−1は、捨てられる
可能性のある全サービスタスクに対して、そのタスクが
捨てられるのを待っているか否か(すなわちそのタスク
が状態を変化させているか否か)を問い合わせるメツセ
ージ15を送信する。
That is, the trash can service task 5-1 determines whether or not the task is waiting to be discarded (i.e., whether the task is changing its state) for all service tasks that may be discarded. Send inquiry message 15.

ドキュメントサービスタスク5−1はこのメツセージ1
5を受けて、次の処理の待機状態にあることを示す返事
のメツセージ16をごみ箱サービスタスク5−5に戻す
。ごみ箱サービスタスク5−5は返事のメツセージ16
によってドキュメントサービスタスク5−1が捨てられ
るのを待機していると判断し、ドキュメントをごみ箱に
捨てる処理(すなわちドキュメントサービスタスク5−
1の管理をごみ箱サービスタスク5−5下で行なう処理
)を実行する。この処理を実行することによって、ドキ
ュメントサービスタスク5−5はディスプレイ2上から
消去されることになる(第5図(a−3))。
Document service task 5-1 is this message 1
5, a reply message 16 indicating that the task is in a standby state for the next process is returned to the trash can service task 5-5. Trash can service task 5-5 is reply message 16
It is determined that the document service task 5-1 is waiting to be discarded by
1 under the trash box service task 5-5). By executing this process, the document service task 5-5 is erased from the display 2 (FIG. 5(a-3)).

一方、ごみ箱サービスタスク5−5が送信した状態が変
化しているか否かを問い合わせるメツセージ15に対し
て、状態が変化していることを示す返事のメツセージ1
6がどのサービスタスクからも返ってこない場合には、
ごみ箱サービスタスク5−5は今回のアクセスがごみ箱
の中身を提示するサービスの要求であると判断し、ごみ
箱サービスタスクが管理しているドキュメント等を提示
する(第5図(b−2))。
On the other hand, in response to the message 15 sent by the trash can service task 5-5 inquiring whether the status has changed, a reply message 1 indicating that the status has changed is sent.
If 6 is not returned from any service task,
The trash can service task 5-5 determines that the current access is a request for a service that presents the contents of the trash can, and presents documents and the like managed by the trash can service task (FIG. 5 (b-2)).

第7図は、画面管理タスク9(同図(a))、およびド
キュメントサービスタスク5−■(同図(b))とごみ
箱サービスタスク5−5(同図(C))を例とする各サ
ービスタスクの動作フローチャートである。
FIG. 7 shows screen management task 9 ((a) in the same figure), document service task 5-■ ((b) in the same figure), and trash service task 5-5 ((C) in the same figure) as examples. It is an operation flowchart of a service task.

画面管理タスク9(第7図(a))は、処理を開始する
と(Start)、まず他のタスクからのメツセージを
待機する(371)。メツセージを受信するとそのメツ
セージを分析する(S72)。
When the screen management task 9 (FIG. 7(a)) starts processing (Start), it first waits for messages from other tasks (371). When a message is received, the message is analyzed (S72).

そして、メツセージの種類によって、それぞれの処理を
実行する。受信したメツセージが入力管理タスク10か
らの座標表示を引数とするメツセージ(11,13)で
あったとする(S73)と、画面管理タスク9はアイコ
ンに対応するサービスタスクの番号を管理しているので
、各サービスタスク(5−1,5−2、・・・、5−6
)に対して、入力管理タスクlOから受信した座標情報
を引数とするメツセージ(12,14)を送信しく37
4)、その後、再びメツセージ受信待ちの状態に戻る(
S71)。
Then, each process is executed depending on the type of message. Assuming that the received message is a message (11, 13) whose argument is the coordinate display from the input management task 10 (S73), the screen management task 9 manages the number of the service task corresponding to the icon. , each service task (5-1, 5-2,..., 5-6
), send a message (12, 14) with the coordinate information received from the input management task IO as an argument.37
4), then returns to the state of waiting for message reception again (
S71).

また、ドキュメントサービスタスク5−1も通常はメツ
セージ受信待ちの状態にある(第7図中)S75)。メ
ツセージを受信すると、画面管理タスクと同様にメツセ
ージの内容を分析しく376)、メツセージの種類に対
応した処理が実行される。
Further, the document service task 5-1 is also normally in a state of waiting to receive a message (S75 in FIG. 7). When a message is received, the content of the message is analyzed (376) in the same way as the screen management task, and processing corresponding to the type of message is executed.

メツセージが画面管理タスク9からのアクセス座標の通
知14であれば(377)、その座標がドキュメントの
アイコン4−1の表示範囲内にあるか否かを判定する(
37B)。アイコン4−1の表示範囲内にあれば、ドキ
ュメントサービスタスク5−1がアクセスされたと判定
しく)79)。
If the message is the access coordinate notification 14 from the screen management task 9 (377), it is determined whether the coordinates are within the display range of the document icon 4-1 (
37B). If it is within the display range of the icon 4-1, it is determined that the document service task 5-1 has been accessed)79).

タスクのアクセス状態を示すフラグ(FLAG)の値を
1にする(S80)。このフラグはタスクがアクセスさ
れ状態が変化したときに1、アクセスされていないとき
には0の値をとる状態変化値格納部である。一方、受信
したメツセージの座標情報がドキュメントのアイコン4
−1の範囲外であれば、他のタスクがアクセスされたも
のと判断しく581)、フラグの値をOにする(S82
)。
The value of a flag (FLAG) indicating the access state of the task is set to 1 (S80). This flag is a state change value storage unit that takes a value of 1 when a task is accessed and its state changes, and takes a value of 0 when it is not accessed. On the other hand, the coordinate information of the received message is the document icon 4
If it is outside the range of -1, it is assumed that another task has been accessed (581), and the value of the flag is set to O (S82).
).

フラグの値を決定したのち(S80または582)、次
のメツセージ受信待ちの状態に戻る(S75)。
After determining the value of the flag (S80 or 582), the process returns to the state of waiting for reception of the next message (S75).

受信したメツセージがタスクの状態を確認するメツセー
ジ(例えば、ごみ箱サービスタスクからの状態確認メツ
セージ15)の場合には(S83)、フラグが1か否か
(すなわち、タスクの状態が変化しているか否か)を判
定しく584)、FLAG=1ならば(Y)、状態確認
のメツセージを送信してきたタスクに対して状態が変わ
ったことを通知するために、自身のタスク番号を引数と
するメツセージ16を送信する(S85)。FLAG=
0の場合には(N)、状態が不変であることを、例えば
引数−1のメツセージを送信することにより通知する(
S86)。その後、メツセージ受信待ちの状態に戻る(
S75)。
If the received message is a message confirming the status of the task (for example, status confirmation message 15 from the trash can service task) (S83), it is determined whether the flag is 1 (i.e., whether the status of the task has changed or not). 584) If FLAG=1 (Y), send message 16 with its own task number as an argument to notify the task that sent the status confirmation message that the status has changed. (S85). FLAG=
If it is 0 (N), notify that the state is unchanged, for example by sending a message with argument -1 (
S86). After that, the state returns to waiting for message reception (
S75).

以上に説明したように、各サービスタスクはどれも、通
常はメツセージ受信待ちの状態にあり、メツセージを受
信するとそのメツセージを分析したうえ、メツセージの
種類に適した処理を実行するようになっている。
As explained above, each service task is normally in the state of waiting to receive a message, and when a message is received, it analyzes the message and executes the processing appropriate for the type of message. .

ごみ箱サービスタスク5−5も同様である。まずメツセ
ージ受信待ちの状態で(SST)メツセージを受信する
とメツセージを分析しく38B)、メツセージの内容に
適した処理を実行する。メツセージが画面管理タスク9
からの座標通知ならば(S89)、次に、座標の領域判
定を行ない、ごみ箱サービスタスクがアクセスされたの
か他のサービスタスクがアクセスされたのかを判定する
(S89)。その座標がごみ箱のアイコン4−5の表示
範囲内にあればごみ箱サービスタスク5−5がアクセス
されたと判断しく590)、ごみ箱に関する前述の二つ
のサービスのどちらを実行するかを判定するために、状
態変化が可能な他のサービスタスクに対して状態変化確
認メツセージ15を送信しく591)、次のメツセージ
の受信を待つ(S87)。一方、領域判定(S89)の
結果、ごみ箱サービスタスクへのアクセスではないと判
定された場合には(S92)、処理は行わずに次のメツ
セージ受信待ちの状態に戻る(S87)。
The same applies to the trash can service task 5-5. First, in a message reception waiting state (SST), when a message is received, the message is analyzed (38B) and processing appropriate to the content of the message is executed. Message screen management task 9
If the coordinate notification is from (S89), then the area of the coordinates is determined, and it is determined whether the trash can service task or another service task has been accessed (S89). If the coordinates are within the display range of the trash can icon 4-5, it is determined that the trash can service task 5-5 has been accessed (590), and in order to determine which of the two services related to the trash can to be executed, It sends the status change confirmation message 15 to other service tasks whose status can change (591), and waits for reception of the next message (S87). On the other hand, if it is determined as a result of the area determination (S89) that the access is not to the trash can service task (S92), no processing is performed and the process returns to the state of waiting for reception of the next message (S87).

受信したメツセージがごみ箱サービスタスク51が送信
した状態変化確認メツセージへの返事ならば(S93)
、ごみ箱サービスタスクはそのメツセージを分析し、状
態が変化しているか否かを判断する(394)。すなわ
ち、受信したメツセージの引数がタスク番号(正整数)
であれば、そのタスク番号のサービスタスクの状態が変
化したものと判断しくY)、ごみ箱にそのタスク番号の
サービスタスクを捨てる処理を実行する(395)。一
方、受信したメツセージの引数が−1(負数)であれば
、状態が変化していないと判断し、ごみ箱に既に捨てた
状態の中身(ドキュメント等)を表示する処理を実行す
る(396)。S95または396の処理完了後、次メ
ツセージ受信待ちの状態に戻る(387)。
If the received message is a reply to the status change confirmation message sent by the trash can service task 51 (S93)
, the trash service task analyzes the message and determines whether the state has changed (394). In other words, the argument of the received message is the task number (positive integer)
If so, it is determined that the state of the service task with that task number has changed (Y), and the process of discarding the service task with that task number into the trash can is executed (395). On the other hand, if the argument of the received message is -1 (negative number), it is determined that the status has not changed, and a process is executed to display the contents (documents, etc.) that have already been discarded in the trash can (396). After completing the processing in S95 or 396, the process returns to the state of waiting for reception of the next message (387).

以上のように、従来の方式では、あるサービスタスクを
実行する際に他のサービスタスクの状態情報が必要な場
合には、他のサービスタスクに状態を問うメツセージを
送信し、その返答のメツセージの内容に従って処理を行
なう方式を採っている。
As described above, in the conventional method, if a service task requires status information of another service task when executing it, it sends a message asking the other service task about its status, and the response message is sent to the other service task. A method is adopted in which processing is performed according to the content.

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

しかしながら、前述の方式では、他のサービスタスクの
状態が必要な度に、状態を問うメツセージの送信とその
返答メツセージの受信を行ない、その返答を判断しサー
ビスを実行しなければならい。また、状態が変化可能な
サービスタスクが多数ある場合には、それら全てのサー
ビスタスクに対して状態を問うメツセージを送信し、そ
れぞれの返答メツセージの内容を判断して処理する必要
がある。このため、返送メツセージの送受信に時間がか
かり、サービスの実行速度が低下し、処理効率が落ちる
という問題があった。
However, in the above-described method, each time the status of another service task is required, it is necessary to send a message inquiring about the status, receive a reply message, judge the reply, and execute the service. Furthermore, if there are many service tasks whose status can change, it is necessary to send a message inquiring about the status to all of these service tasks, and to judge and process the content of each reply message. For this reason, there is a problem in that it takes time to send and receive return messages, reducing service execution speed and processing efficiency.

これは、あるサービスタスクの状態が変化しても、その
サービスタスクの中でのみ状態の変化を管理し、他のサ
ービスタスクからのメツセージによって状態を問われて
初めて他のサービスタスクに状態の変化を伝える方式を
採っているためである。
This means that even if the state of a service task changes, the state change is managed only within that service task, and the state change is only notified to other service tasks when the state is questioned by a message from another service task. This is because the system uses a method of communicating the following.

本発明は、全サービスタスクの状態の変化を管理するタ
スクを設け、状態が変化したサービスタスクがその管理
タスクに状態の変化を自己申告し、一方、管理タスクが
どのサービスタスクの状態が変化したかを一括して各サ
ービスタスクにメツセージ送信することによって、各サ
ービスタスク間のメツセージ交換をなくし、処理速度を
向上することを目的とする。
The present invention provides a task that manages changes in the state of all service tasks, and a service task whose state has changed self-reports the state change to its management task, while the management task reports which service task's state has changed. The purpose of this invention is to eliminate message exchange between each service task and improve processing speed by sending a message to each service task all at once.

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

第1図は、本発明の機能ブロック図である。本発明は、
ディスプレイ2上に複数のアイコン(アイコン群4)を
表示し、ポインティング・デバイス3を使ってアイコン
を選択し、そのアイコンに対応するタスク(サービスタ
スク群5)にアクセスすることにより、各アイコンに対
応したサービスが提供されるワークステーション1を前
提とする。
FIG. 1 is a functional block diagram of the present invention. The present invention
Display multiple icons (icon group 4) on the display 2, select an icon using the pointing device 3, and access the task corresponding to that icon (service task group 5) to respond to each icon. The workstation 1 is assumed to be provided with the following services.

入出力管理1段6は、ポインティング・デバイス3から
の入力信号を処理しポインティング・デバイス3が指し
示しているディスプレイ2の座標位置の計算を行ない、
サービスタスク群5にその座標情報を通知するとともに
、ディスプレイ2上に表示するアイコン群4を管理する
The input/output management stage 6 processes the input signal from the pointing device 3 and calculates the coordinate position of the display 2 pointed by the pointing device 3.
It notifies the service task group 5 of the coordinate information and also manages the icon group 4 displayed on the display 2.

タスク状態変化通知手段7は、サービスタスクの状態の
変化の有無を判断し、変化した場合にはその旨を後述の
タスク状態管理1段8に通知する。
The task state change notification means 7 determines whether or not there is a change in the state of the service task, and if there is a change, it notifies the task state management stage 1 8, which will be described later, to that effect.

タスク状態管理手段8は、サービスタスク群5の各タス
クから通知される状態の変化を管理し、サービスタスク
群5に対して、どのタスクの状態が変化したかを通知す
る。
The task state management means 8 manages changes in states notified from each task of the service task group 5, and notifies the service task group 5 of which task's state has changed.

〔作   用〕[For production]

ユーザは、ディスプレイ2に表示されたアイコン群4(
アイコン1、・・・、アイコンミ1 ・・、アイコンn
)のなかからポインティング・デバイス3を使って所望
のサービスを提供するアイコン(アイコンi)を選択す
る。すると、ポインティング・デバイス3はユーザが選
択したカーソルの位置情報を入出力管理下段6に人力す
る。入出力管理手段6は、この入力をもとにカーソルの
座標を計算し、その座標情報をサービスタスク群5の各
タスク(タスク1、タスク2、・・・、タスクn)に通
知する。
The user selects the icon group 4 (
Icon 1..., Icon Mi 1..., Icon n
), use the pointing device 3 to select an icon (icon i) that provides the desired service. Then, the pointing device 3 inputs the position information of the cursor selected by the user to the input/output management lower stage 6. The input/output management means 6 calculates the coordinates of the cursor based on this input, and notifies each task (task 1, task 2, . . . , task n) of the service task group 5 of the coordinate information.

各タスクは、入出力管理手段6から入力された座標情報
から自分のタスクが選択されたか否かを判定する。すな
わち、今ユーザがアイコンiを選択し、その座標情報を
入出力管理下段6がサービスタスク群5に通知すると、
アイコンiに対応するサービスタスクiはその座標情報
から自タスクが選択されたと判断する。
Each task determines whether or not its own task has been selected from the coordinate information input from the input/output management means 6. That is, when the user selects icon i and the input/output management lower stage 6 notifies the service task group 5 of its coordinate information,
Service task i corresponding to icon i determines that it has been selected from the coordinate information.

アクセスされたサービスタスクiがアクセスによって状
態を変化するタスクである場合には、そのタスク内に設
けられたタスク状態変化通知手段7がタスク状態管理手
段8に状態が変化する旨を通知する。
If the accessed service task i is a task whose state changes due to the access, the task state change notification means 7 provided in the task notifies the task state management means 8 of the change in state.

タスク状態管理1段8は、サービスタスク群5の状態変
化可能なタスクiからの状態変化通知を受けて、状態が
変化したタスクの番号を管理し、さらにサービスタスク
群の各タスク(タスク1、タスク2、・・・、タスクn
)に状態が変化したタスクのタスク番号を通知する。
The task state management stage 1 8 receives the state change notification from the task i in the service task group 5 whose state can be changed, and manages the number of the task whose state has changed, and also manages the number of the task whose state has changed, and also manages the number of the task whose state has changed. Task 2, ..., task n
) is notified of the task number of the task whose state has changed.

このタスク番号の通知によって、他のサービスタスクの
状態変化情報を必要としているサービスタスクは状態が
変化したタスクのタスク番号を知ることができ、その情
報をもとにサービスを実行することが可能になる。例え
ば、従来方式の項で説明したごみ箱サービスタスクの場
合には、ドキュメントサービスタスクの状態変化通知を
タスク状態管理手段8からごみ箱サービスタスクが受は
取ればドキュメントサービスタスクをごみ箱に捨てる処
理を実行し、状態変化通知がないならば、ごみ箱の中身
を提示する処理を実行する。
By notifying this task number, service tasks that require state change information of other service tasks can know the task number of the task whose state has changed, and can execute the service based on that information. Become. For example, in the case of the trash can service task explained in the conventional method section, when the trash can service task receives a status change notification of the document service task from the task status management means 8, it executes the process of discarding the document service task in the trash can. , If there is no status change notification, execute the process of presenting the contents of the trash can.

〔実  施  例〕〔Example〕

以下、第2図乃第4図を参照しながら実施例を説明する
Examples will be described below with reference to FIGS. 2 to 4.

第2図は、本発明の一実施例のシステム構成図である。FIG. 2 is a system configuration diagram of an embodiment of the present invention.

本実施例は、例えば、パーソナル・コンピュータ・シス
テムやワークステーション・システムとして構成するこ
とが可能である。
This embodiment can be configured as a personal computer system or a workstation system, for example.

CPU21を中心とし、これに主記憶22、フロッピー
・ディスク装置やハードディスク、磁気テープ装置等の
2次記憶装置23、ディスプレイコントローラ24、タ
ッチパネル制御装置25が接続される。ディスプレイコ
ントローラ24は表示メモリ用のバッファ26を介して
ディスプレイ27に接続され、またタッチパネル制御部
25はタッチパネル28に接続される。但し、タッチパ
ネル28は、その他のポインティング・デバイス、例え
ばマウスや電子ペンと置き換えることが可能である。
A main memory 22, a secondary storage device 23 such as a floppy disk device, a hard disk drive, or a magnetic tape device, a display controller 24, and a touch panel control device 25 are connected to the CPU 21. The display controller 24 is connected to a display 27 via a display memory buffer 26, and the touch panel control section 25 is connected to a touch panel 28. However, the touch panel 28 can be replaced with other pointing devices, such as a mouse or an electronic pen.

主記憶22には、オペレーティング・システムの他、各
アイコンに対応するサービスタスクの処理プログラムや
、ディスプレイやタッチパネル等の入出力装置の管理プ
ログラム(入出力管理手段6の実行プログラム)、タス
ク状態管理1段8の実行プログラム等が格納されており
、このプログラムに従ってCPU21が処理を実行する
。オペレーティング・システムは、複数のタスクを並列
に実行可能なものが望ましい。
In addition to the operating system, the main memory 22 includes service task processing programs corresponding to each icon, management programs for input/output devices such as displays and touch panels (execution programs for the input/output management means 6), and task state management 1. An execution program for stage 8, etc. is stored, and the CPU 21 executes processing according to this program. It is desirable that the operating system be capable of executing multiple tasks in parallel.

次にこのシステムの動作を説明する。Next, the operation of this system will be explained.

ユーザはディスプレイ27上に表示されたアイコンの一
つをタッチパネル28によって選択する。
The user selects one of the icons displayed on the display 27 using the touch panel 28.

するとタッチパネル制御部25はユーザが触れたディス
プレイ上の位置をCPU21に入力する。
Then, the touch panel control unit 25 inputs the position on the display touched by the user to the CPU 21.

CPU21は主記憶22内の入出力処理プログラムを実
行し、ユーザが触れたディスプレイ上の位置座標を計算
する。そして計算結果の座標情報を各アイコンに対応す
るサービスタスクにメツセージ送信する。
The CPU 21 executes the input/output processing program in the main memory 22 and calculates the coordinates of the position on the display touched by the user. Then, the coordinate information of the calculation result is sent as a message to the service task corresponding to each icon.

各サービスタスクはメツセージを受けて、それぞれのタ
スクのプログラムに従い処理を実行する。
Each service task receives a message and executes processing according to its own program.

どのタスクも、まず、受信したメツセージに含まれる座
標情報が自分のタスクのアイコンの表示領域に含まれる
か否かを判断し、含まれない場合には処理を終了する。
Each task first determines whether the coordinate information included in the received message is included in the display area of its own task's icon, and if not included, the process ends.

自アイコンの表示領域に含まれる場合はそのタスクがア
クセスされたと判断されるので、以下、アクセスされた
タスクの処理プログラムに従った処理が実行される。
If the task is included in the display area of its own icon, it is determined that the task has been accessed, and the processing according to the processing program of the accessed task is then executed.

例えば、アクセスされたサービスタスクがドキュメント
の作成や更新、登録、削除等を提供するドキュメントサ
ービスタスクの場合には、このアクセスによって、その
ドキュメントに対して何らかの処理をこれから行なうこ
とが宣言されたことになる。すなわち、ドキュメントサ
ービスタスクはこのアクセスにより状態を変化させ、ユ
ーザの次の要求を待つことになる。
For example, if the accessed service task is a document service task that provides document creation, updating, registration, deletion, etc., this access declares that some kind of processing will be performed on that document. Become. That is, the document service task changes state due to this access and waits for the user's next request.

ドキュメントサービスタスクのようにユーザのアクセス
によって状態を変化させるサービスタスクは、次に、状
態が変化したことをタスク状態管理1段8の実行プログ
ラムにメツセージ送信する。
A service task, such as a document service task, which changes its state in response to user access, then sends a message to the execution program of the task state management stage 1 8 that the state has changed.

タスク状態管理手段8は状態が変化したサービスタスク
のタスク番号を管理する。そして、ユーザが次の何らか
の要求をした(す°なわち、アイコンを選択した)時点
で、入出力管理1段6が座標情報を全サービスタスクに
通知するのと合わせて、現在状態が変化しているサービ
スタスクのタスク番号をメツセージ送信する。
The task state management means 8 manages the task number of the service task whose state has changed. Then, when the user makes the next request (that is, selects an icon), the input/output management stage 1 6 notifies the coordinate information to all service tasks, and the current state changes. Sends a message with the task number of the service task being executed.

各サービスタスクはタスク状態管理手段8からのメツセ
ージを受けて、自タスクがアクセスされたか否かを判断
し、アクセスされたサービスタスクは自プログラムと状
態が変化しているサービスタスクのタスク番号に従って
処理を実行する。例えば、先のドキュメントサービスタ
スクへのアクセスの次にごみ箱サービスタスクがアクセ
スされた場合には、タスク状態管理手段8からドキュメ
ントサービスタスクのタスク番号がごみ箱サービスタス
クに通知されるので、このタスク番号を参照して、ごみ
箱にこのドキュメントサービスタスクを捨てる処理を実
行する。
Each service task receives a message from the task state management means 8 and determines whether or not its own task has been accessed, and the accessed service task is processed according to its own program and the task number of the service task whose state has changed. Execute. For example, if the trash can service task is accessed next to the previous document service task, the task status management means 8 notifies the trash can service task of the task number of the document service task. Browse and execute the process to throw this document service task into the trash.

第3図は、一実施例における各タスク間でのメツセージ
の流れの説明図である。
FIG. 3 is an explanatory diagram of the flow of messages between each task in one embodiment.

従来方式の場合と同様に、入力管理タスク31と画面管
理タスク32、および各アイコン(4−1、・・・、4
−6)に対応するサービスタスク(ドキュメントサービ
スタスク33−1、時計す=ビスタスク33−2、・・
・、ごみ箱サービスタスク33−5、引き出しサービス
タスク33−6)が存在する。入力管理タスク31はタ
ッチパネルやマウス等のポインティング・デバイスから
入力されるカーソルの情報をもとにユーザが指したディ
スプレイ上の座標を計算し、その座標を画面管理タスク
32にメツセージ送信する役割を果たす。また画面管理
タスク32は、ディスプレイ2に表示しであるアイコン
に対応するサービスタスクのタスク番号に加えて、状態
が変化したタスクのタスク番号を管理している。そして
全サービスタスクに対して入力管理タスク31から送ら
れる座標情報と状態が変化しているタスクのタスク番号
を引数とするメ・シセージ送信する役割を持つ。
As in the case of the conventional method, the input management task 31, the screen management task 32, and each icon (4-1, . . . , 4
-6) corresponding service tasks (document service task 33-1, clock service task 33-2,...
, a trash can service task 33-5, and a withdrawal service task 33-6). The input management task 31 plays the role of calculating the coordinates on the display pointed by the user based on cursor information input from a pointing device such as a touch panel or mouse, and transmitting the coordinates as a message to the screen management task 32. . Further, the screen management task 32 manages the task number of the service task corresponding to the icon displayed on the display 2, as well as the task number of the task whose state has changed. It has the role of sending a message to all service tasks using the coordinate information sent from the input management task 31 and the task number of the task whose status is changing as arguments.

ここで、どのサービスタスクも状態が変化していない場
合(初期状態)は、タスク番号の値を−1にすることと
する。
Here, if the state of any service task has not changed (initial state), the value of the task number is set to -1.

今、ユーザがドキュメントのアイコン4−1を手のアイ
コン4−7で指してアクセスしたものとする(同図(a
))。すると、まず入力管理タスク31が〒のアイコン
4−7の座標を計算し、画面管理タスク32にその座標
情報を引数とするメ・ンセージ34を送信する。画面管
理タスク33はこのメツセージ34を受けて管理してい
る全サービスタスクに対して座標情報および状態が変化
しているタスクのタスク番号を引数とするメツセージ3
5を送信する。この時点では状態が変化しているサービ
スタスクは存在しないので、タスク番号の引数は−1で
ある。
Now, assume that the user accesses the document icon 4-1 by pointing at the hand icon 4-7 (see figure (a)
)). Then, the input management task 31 first calculates the coordinates of the icon 4-7 of 〒, and sends a message 34 using the coordinate information as an argument to the screen management task 32. Upon receiving this message 34, the screen management task 33 sends a message 3 to all the service tasks it manages, with coordinate information and the task number of the task whose status has changed as arguments.
Send 5. At this point, there is no service task whose state is changing, so the task number argument is -1.

各サービスタスクはメツセージ35を受けて自サービス
タスクがアクセスされたか否かを判定する。すなわちメ
ツセージ35に含まれる座標情報が自サービスタスクに
対応するアイコンの表示範囲に含まれるか否かの領域判
定を実行する。もしアイコンの範囲内にあれば、そのサ
ービスタスクがアクセスされたと判断する。座標情報が
アイコンの範囲外の場合には、アクセスされていないと
判断し、そのサービスタスクは処理を終了する。
Each service task receives the message 35 and determines whether or not it has been accessed. That is, an area determination is performed to determine whether or not the coordinate information included in the message 35 is included in the display range of the icon corresponding to the own service task. If it is within the range of the icon, it is determined that the service task has been accessed. If the coordinate information is outside the range of the icon, it is determined that it has not been accessed, and the service task ends the process.

第3図(a)の場合は、ドキュメントサービスタスク3
3−1が自タスクがアクセスされたと判断する。他のサ
ービスタスク(33−2、・・、33−6)はアクセス
されていないので処理を終了する。ドキュメントサービ
スタスク33”−1は、このアクセスによって状態を変
化させる。そして状態が変化したことを画面管理タスク
32にメツセージ送信36する。このメツセージの引数
はドキュメントサービスタスクのタスク番号である。画
面管理タスク32はこのメツセージ36を受けて状態が
変化したドキュメントサービスタスクのタスク番号を保
持する。これでユーザがドキュメントのアイコン4−1
をアクセスしたことによる処理が終了する。
In the case of Figure 3(a), document service task 3
3-1 determines that its own task has been accessed. Since the other service tasks (33-2, . . . , 33-6) have not been accessed, the process ends. The document service task 33''-1 changes its state due to this access.Then, it sends a message 36 to the screen management task 32 to notify that the state has changed.The argument of this message is the task number of the document service task.Screen management The task 32 holds the task number of the document service task whose status has changed in response to this message 36.This allows the user to select the document icon 4-1.
The processing caused by accessing ends.

次に、ユーザがごみ箱のアイコン4−5を手のアイコン
4−7で指してアクセスするとする(同図中))。
Next, it is assumed that the user accesses the trash can icon 4-5 by pointing with the hand icon 4-7 (in the same figure).

人力管理タスク31は前述の場合と同様に手のアイコン
4−7が指しているディスプレイ上の座標を計算し、座
標情報を引数とするメツセージ37を画面管理タスク3
2に送信する。画面管理タスク32は、入力管理タスク
31からのメツセージ37を受けて、管理している全サ
ービスタスクに対して、全入力管理タスク31から送ら
れてきた座標情報と、状態が変化したタスクのタスク番
号(すなわちドキュメントサービスタスクのタスク番号
)を引数とするメツセージ38を送信する。
The human power management task 31 calculates the coordinates on the display that the hand icon 4-7 points to, as in the case described above, and sends the message 37 with the coordinate information as an argument to the screen management task 3.
Send to 2. The screen management task 32 receives the message 37 from the input management task 31 and sends the coordinate information sent from the all input management task 31 and the task whose status has changed to all the service tasks it manages. A message 38 is sent with a number (ie, the task number of the document service task) as an argument.

各サービスタスク(33−1、・・・、33−6)は、
メツセージ38を受けて、前述と同様にまずメツセージ
に含まれる座標情報を元に領域判定を行ない・自サービ
スタスクがアクセスされているのか否かを判断する。こ
の場合は、ごみ箱サービスタスク33−5がアクセスさ
れた。他のサービスタスク(33−1、・・・、33−
4.33−6)はアクセスされていないので処理を終了
する。
Each service task (33-1, ..., 33-6) is
Upon receiving the message 38, as described above, the area is first determined based on the coordinate information included in the message, and it is determined whether or not the own service task is being accessed. In this case, trash service task 33-5 was accessed. Other service tasks (33-1, ..., 33-
4.33-6) has not been accessed, so the process ends.

ごみ箱サービスタスク33−5は、自タスクがアクセス
されたと判断し、また状態が変化したタスク番号(すな
わち6ドキユメントサービスタスクのタスク番号)が送
信されてきたので、そのタスク番号のサービスタスク(
ドキュメントサービスタスク33−1)をごみ箱に捨て
る処理を実行して処理を実行する。すなわちごみ箱に捨
てたタスクのタスク番号を管理する領域にドキュメント
サービスタスク33−1のタスク番号を登録する。
The trash can service task 33-5 determines that its own task has been accessed, and since the task number whose status has changed (i.e., the task number of the 6 document service task) has been sent, the service task (
The process is executed by executing the process of discarding the document service task 33-1) in the trash can. That is, the task number of the document service task 33-1 is registered in the area for managing the task numbers of tasks thrown away in the trash can.

そしてごみ箱サービスタスク33−5の処理を終了する
Then, the processing of the trash can service task 33-5 ends.

このように画面管理タスク32が状態の変化したサービ
スタスクのタスク番号を管理し、また画面管理タスク3
2が送信するメツセージの引数に状態の変化したタスク
のタスク番号を加え、さらにサービスタスクの状態が変
化した時点で、そのサービスタスク自身が画面管理タス
ク32に状態が変化したことを通知することによって、
従来方式で行なっていた状態の変化を確認するためのサ
ービスタスク間のメツセージ交換をすることなくサービ
スを実行することが可能になる。
In this way, the screen management task 32 manages the task number of the service task whose status has changed, and also manages the task number of the service task whose status has changed.
2 adds the task number of the task whose state has changed to the argument of the message sent by 2, and when the state of the service task changes, the service task itself notifies the screen management task 32 that the state has changed. ,
It becomes possible to execute a service without exchanging messages between service tasks to confirm changes in status, which was done in the conventional method.

第4図は、入力管理タスク31、画面管理タスク32、
およびドキュメントサービスタスク33−■とごみ箱サ
ービスタスク33−5を例とするサービスタスクの動作
フローチャートである。
FIG. 4 shows an input management task 31, a screen management task 32,
3 is an operation flowchart of service tasks taking the document service task 33-■ and the trash can service task 33-5 as examples.

まず、入力管理タスクは(同図(a)L通常はユーザが
ポインティング・デバイスをクリックすることによって
起こる割り込みを待つ状態にある(S41)。ユーザが
ポインティング・デバイスによってカーソルを所望のア
イコンの位置に移動し入カポタンをクリックすると割り
込みが発生する。入力管理タスク31はこの割り込みを
受けてポインティング・デバイスの制御装置からユーザ
が指示した座標に関する情報を獲得し、指示座標を計算
する(S42)。そして、次にその座標情報を引数とす
るメツセージ(34,37)を画面管理タスク33に送
信する(S43)、これで入力管理タスク31の処理が
終了し、次のユーザ入力割り込みが発生するのを待機す
る状態に戻る(S41)。
First, the input management task is in a state (S41) in which the input management task normally waits for an interrupt caused by the user clicking the pointing device. When the user moves and clicks on the input button, an interrupt occurs.In response to this interrupt, the input management task 31 acquires information regarding the coordinates specified by the user from the control device of the pointing device, and calculates the specified coordinates (S42). , then sends a message (34, 37) with the coordinate information as an argument to the screen management task 33 (S43). This completes the processing of the input management task 31, and waits for the next user input interrupt to occur. The process returns to the standby state (S41).

次に、画面管理タスク32の動作を第4図中)に沿って
説明する。まずタスクが実行状態になると、他のタスク
からのメツセージの受信待ち状態になる(344)。メ
ツセージを受信すると、そのメツセージの内容を分析し
く545)、メツセージ内容に適した処理を実行する。
Next, the operation of the screen management task 32 will be explained along the lines shown in FIG. First, when a task enters a running state, it enters a state in which it waits to receive messages from other tasks (344). When a message is received, the content of the message is analyzed (545) and processing appropriate to the message content is executed.

メツセージが人力管理タスク31から通知される座標情
報のメツセージの場合(S46)には、その座標情報と
、画面管理タスク32が管理している状態が変化したタ
スクのタスク番号を引数とするメツセージ(35,38
)を各サービスタスクに送信する(347)。
If the message is a message of coordinate information notified from the human management task 31 (S46), a message ( 35, 38
) to each service task (347).

メツセージの内容がサービスタスク(33−1、・・・
、33−6)からの状態変化通知36の場合(348)
には、画面管理タスク32は状態の変化したサービスタ
スクのタスク番号をメモリに格納する(S49)。34
7、S49の処理の実行後、再びメツセージ受信待ちの
状態に戻る(S44)。
The content of the message is a service task (33-1,...
, 33-6) in the case of status change notification 36 (348)
Then, the screen management task 32 stores the task number of the service task whose state has changed in the memory (S49). 34
7. After executing the process of S49, the process returns to the message reception waiting state (S44).

以上のように、画面管理タスク32が状態変化タスクの
タスク番号を管理し、送信するメツセージの引数として
その時点で状態が変化しているサービスタスクのタスク
番号を加え、座標情報とともに送信することによって、
このメツセージを受信するサービスタスクの側では、個
々のサービスタスク間で状態確認のメツセージ交換をす
ることなくサービスを実行することが可能になる。
As described above, the screen management task 32 manages the task number of the state change task, adds the task number of the service task whose state is changing at that time as an argument of the message to be sent, and sends it along with the coordinate information. ,
The service task receiving this message can execute the service without exchanging status confirmation messages between the individual service tasks.

一方、各アイコンのサービスを実行するサービスタスク
の動作例として、状態が変化可能であり、変化した場合
に画面管理タスク32に状態の変化を通知するドキュメ
ントサービスタスク33−1の動作を第4図(C)に、
また、状態が変化する他のタスクの情報をもとにサービ
スを行なうごみ箱サービスタスク33−5の動作を同図
(d)に沿って説明する。
On the other hand, as an example of the operation of a service task that executes the service of each icon, FIG. (C),
Further, the operation of the trash can service task 33-5, which performs services based on information of other tasks whose states change, will be explained along with FIG. 3(d).

ドキュメントサービスタスク33−1が実行状態になる
と、まず他のタスクからのメツセージ受信待ちになる(
S50)。メツセージを受信すると、その内容を分析し
く551)、その内容に適した処理を実行する。
When the document service task 33-1 enters the execution state, it first waits to receive messages from other tasks (
S50). When a message is received, its contents are analyzed (551) and processing appropriate to the contents is executed.

メツセージが画面管理タスク32が送信した指示座標お
よび状態変化タスク番号の通知である場合(352)に
は、次に、ユーザがドキュメントサービスタスクをアク
セスしたのか否かを指示座標の領域判定によって判断す
る(S53)、画面管理タスク32から送信された指示
座標がドキュメントのアイコン4−1の表示領域内の座
標であれば、ドキュメントサービスタスクがアクセスさ
れたと判断しく554)、逆にアイコン4−1の表示領
域内の座標でなければ、ドキュメントサービスタスクは
アクセスされず、他のサービスタスクがアクセスされた
と判断する(S55)。
If the message is a notification of the designated coordinates and status change task number sent by the screen management task 32 (352), then whether or not the user has accessed the document service task is determined by determining the area of the designated coordinates. (S53), if the designated coordinates sent from the screen management task 32 are within the display area of the document icon 4-1, it is determined that the document service task has been accessed (554); If the coordinates are not within the display area, it is determined that the document service task is not accessed and that another service task is accessed (S55).

ドキュメントサービスタスクがアクセスされた場合は(
S54)、ドキュメントサービスタスクの状態が変化す
るので、変化する旨を画面管理タスク32にタスク番号
を引数とするメツセージ36として送信しく556)、
その後次のメッセ−ジの受信待ち状態に入る(S50)
。一方ドキュメントサービスタスクのアクセスではなか
った場合(355)は、メツセージ受信待ちの状態に直
接戻る(S50)。
If the document service task is accessed (
S54), since the status of the document service task changes, send a message to the screen management task 32 to the effect of the change as a message 36 with the task number as an argument 556);
After that, it enters the waiting state for receiving the next message (S50).
. On the other hand, if the access is not a document service task (355), the process returns directly to the message reception waiting state (S50).

次に、状態変化タスクの情報を受けて処理を行なうごみ
箱サービスタスク33−5 (第4図(d))は、実行
状態になると、他のタスクと同様に、他のタスクが送信
するメツセージの受信待ちの状態になる(S57)。メ
ツセージを受信すると、メツセージの内容を分析し、そ
の内容に適した処理を実行する(358)。
Next, when the trash can service task 33-5 (FIG. 4(d)), which receives information from the state change task and performs processing, enters the execution state, it handles messages sent by other tasks in the same way as other tasks. It enters a reception waiting state (S57). When a message is received, the content of the message is analyzed and processing appropriate to the content is executed (358).

ここで、メツセージが画面管理タスク32からの指示座
標および状態変化タスク番号の通知メツセージ(38)
の場合は(S59)、他のサービスタスクの動作と同様
に、まず自サービスタスクがアクセスされたのか否かを
判定する領域判定を実行する(360)。領域判定には
メツセージのなかの座標情報を用い、この座標がごみ箱
サービスタスクのアイコン4−5の表示領域中にあれば
アクセスされたと判定する(361)。ごみ箱サービス
タスクをアクセスしたのではない場合(S62)には、
次のメツセージの受信待ち状態に戻る(S57)。
Here, the message is a notification message (38) of the designated coordinates and state change task number from the screen management task 32.
In this case (S59), similarly to the operations of other service tasks, first, area determination is performed to determine whether or not the own service task has been accessed (360). The coordinate information in the message is used to determine the area, and if the coordinates are within the display area of the trash can service task icon 4-5, it is determined that the access has been made (361). If the trash service task was not accessed (S62),
The process returns to the state of waiting for reception of the next message (S57).

ごみ箱サービスタスクがアクセスされたと判定された場
合(S61)には、次に、状態が変化しているタスクの
有無を判断する(S63)。この処理は、画面管理タス
ク32からのメツセージの状態変化タスク番号を参照し
て行なう。このタスク番号が正整数であれば、該タスク
番号のサービスタスクの状態が変化している(S64)
ことを意味し、また、タスク番号が−1の場合には状態
が変化しているサービスタスクが存在しない(S65)
ことを意味する。
If it is determined that the trash can service task has been accessed (S61), then it is determined whether there is a task whose status has changed (S63). This process is performed by referring to the status change task number of the message from the screen management task 32. If this task number is a positive integer, the state of the service task with this task number has changed (S64)
This means that if the task number is -1, there is no service task whose state is changing (S65).
It means that.

364の場合は、該タスク番号のサービスタスクをごみ
箱に捨てる処理、すなわち該タスク番号をごみ箱サービ
スタスクが管理するタスク番号の格納領域に登録する処
理を実行する(366)。
In the case of 364, a process of discarding the service task with the task number in the trash can, that is, a process of registering the task number in the task number storage area managed by the trash can service task is executed (366).

一方S65の場合は、ごみ箱の中身、すなわちごみ箱サ
ービスタスクが管理している捨てられたタスクの番号を
表示する処理を実行する(S67)。
On the other hand, in the case of S65, processing is executed to display the contents of the trash can, that is, the number of the abandoned task managed by the trash can service task (S67).

366、S67の処理完了後、次のメツセージ受信待ち
に戻る(S57)。
After completing the processing of 366 and S67, the process returns to waiting for reception of the next message (S57).

各タスクが以上のフローチャートに沿って処理すること
により、各サービスタスク間で状態変化確認のメツセー
ジ交換を実施することなく、サービスを実行することが
可能になる。
By having each task process according to the above flowchart, it becomes possible to execute the service without exchanging messages for status change confirmation between the service tasks.

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

本発明は、各アイコンのサービスを実行するそれぞれの
サービスタスクの状態変化を画面管理タスクに管理させ
、画面管理タスクが状態変化したタスクのタスク番号を
各サービスタスクに通知することにより、サービスタス
ク間での状態変化確認メツセージ交換を不要にすること
を可能にする。
The present invention allows a screen management task to manage changes in the state of each service task that executes the service of each icon, and the screen management task notifies each service task of the task number of the task whose state has changed. To make it possible to eliminate the need for exchanging status change confirmation messages.

この結果、他のタスクの状態変化情報を利用してサービ
スを提供するサービスタスクの実行速度が向上する。
As a result, the execution speed of a service task that provides a service by using state change information of other tasks is improved.

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

第1図は本発明の機能ブロック図、 第2図は一実施例のシステム構成図、 第3図は一実施例におけるタスク間のメツセージの流れ
図、 第4図は一実施例の各タスクの動作フローチャート、 第5図はごみ箱サービスの動作説明図、第6図は従来方
式のタスク間のメツセージの流れの説明図、 第7図は従来方式における各タスクの動作フローチャー
トである。 l・・・ワークステーション、 2・・・ディスプレイ、 3・・・ポインティング・デバイス、 4・・・アイコン群、 5・・・サービスタスク群、 6・・・入出力管理手段、 7・・・タスク状態変化通知1段、 8・・・タスク状態管理手段。
Fig. 1 is a functional block diagram of the present invention, Fig. 2 is a system configuration diagram of an embodiment, Fig. 3 is a flow chart of messages between tasks in an embodiment, and Fig. 4 is an operation of each task in an embodiment. Flowcharts: FIG. 5 is an explanatory diagram of the operation of the trash can service; FIG. 6 is an explanatory diagram of the flow of messages between tasks in the conventional method; and FIG. 7 is an operational flowchart of each task in the conventional method. L... Workstation, 2... Display, 3... Pointing device, 4... Icon group, 5... Service task group, 6... Input/output management means, 7... Task 1 stage of status change notification; 8...Task status management means.

Claims (1)

【特許請求の範囲】 ディスプレイ(2)およびポインティング・デバイス(
3)を備え、該ディスプレイ(2)上のアイコン群(4
)からの該ポインティング・デバイス(3)によるアイ
コン選択に従って、サービス・タスク群(5)中の該ア
イコンに対応したタスクがタスク間のメッセージ交換を
実行しながらサービスを実現するワークステーション(
1)において、 ポインティング・デバイス(3)によって入力される座
標情報をサービス・タスク群(5)にメッセージ送信し
、さらにサービス・タスク群からのメッセージに従いア
イコン群(4)のディスプレイ上の表示を管理する入出
力管理手段(6)と、前記入出力管理手段(6)からの
メッセージ送信によりアクセスされたタスクが、そのア
クセスにより状態を変えることを通知するタスク状態変
化通知手段(7)と、 前記タスク状態変化通知手段(7)によって通知される
状態の変化を、必要に応じてサービス・タスク群(5)
中の各タスクにメッセージ送信するタスク状態管理手段
(8)とを有することを特徴とするタスク状態管理方式
[Claims] Display (2) and pointing device (
3), and a group of icons (4) on the display (2).
), a workstation (
In 1), the coordinate information input by the pointing device (3) is sent as a message to the service task group (5), and the display of the icon group (4) on the display is managed according to the message from the service task group. an input/output management means (6) for transmitting a message from the input/output management means (6); and a task state change notification means (7) for notifying that the task accessed by the message transmission from the input/output management means (6) changes its state due to the access; The change in status notified by the task status change notification means (7) is transmitted to the service task group (5) as necessary.
A task state management method comprising: task state management means (8) for transmitting a message to each task in the task state management system.
JP1201441A 1989-08-04 1989-08-04 Task state management system Pending JPH0365731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1201441A JPH0365731A (en) 1989-08-04 1989-08-04 Task state management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1201441A JPH0365731A (en) 1989-08-04 1989-08-04 Task state management system

Publications (1)

Publication Number Publication Date
JPH0365731A true JPH0365731A (en) 1991-03-20

Family

ID=16441142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1201441A Pending JPH0365731A (en) 1989-08-04 1989-08-04 Task state management system

Country Status (1)

Country Link
JP (1) JPH0365731A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06230918A (en) * 1992-12-31 1994-08-19 Internatl Business Mach Corp <Ibm> Method and equipment for display of visual message in graphic user interface
US8504942B2 (en) * 2007-12-31 2013-08-06 Anthony Vallone Icon-based facilitation of service task performance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06230918A (en) * 1992-12-31 1994-08-19 Internatl Business Mach Corp <Ibm> Method and equipment for display of visual message in graphic user interface
US8504942B2 (en) * 2007-12-31 2013-08-06 Anthony Vallone Icon-based facilitation of service task performance

Similar Documents

Publication Publication Date Title
KR100532514B1 (en) Multi-functional application launcher with integrated status
US8527882B2 (en) System and method for iconic software environment management
US9021375B2 (en) Notification of state transition of an out-of-focus application
US9395890B2 (en) Automatic discovery of system behavior
US9395906B2 (en) Graphic user interface device and method of displaying graphic objects
CN103729065A (en) System and method for mapping touch operations to entity keys
JPH0574094B2 (en)
US20220107712A1 (en) Systems and methods for providing tab previews via an operating system user interface
US20120079009A1 (en) Method and apparatus for choosing resources based on context and inheritance
JP2020161135A (en) Method and system for displaying chat thread
JPH0520016A (en) Icon menu display device
JP2018523189A (en) Automatically associate content with people
US6337702B1 (en) Method and system for graphically indicating a valid input within a graphical user interface
JPH1153116A (en) Information processor with touch panel and control method therefor
CN112005217B (en) Independent thread API calls to service requests
GB2518203A (en) GUI configuration
JPH0365731A (en) Task state management system
TW476903B (en) Method, system, and program for processing data from an input device
US5265251A (en) Mechanism for allowing a single operation to shift the focus between user applications having direct hardware level access to multiple displays in a virtual terminal environment
US20200249776A1 (en) Capturing pen input by a pen-aware shell
JP2001092580A (en) Input instruction device and program recording medium for the device
JP2008500649A (en) User interface action processing using freshness status
CN103885673B (en) Object Selection equipment and object selection method
WO2023217177A1 (en) Method for processing application window, and storage medium and intelligent interaction tablet computer
EP0441509B1 (en) Method and system for single-operation focus shift between user applications in a virtual terminal environment