JP3168921B2 - Information processing device - Google Patents

Information processing device

Info

Publication number
JP3168921B2
JP3168921B2 JP22203296A JP22203296A JP3168921B2 JP 3168921 B2 JP3168921 B2 JP 3168921B2 JP 22203296 A JP22203296 A JP 22203296A JP 22203296 A JP22203296 A JP 22203296A JP 3168921 B2 JP3168921 B2 JP 3168921B2
Authority
JP
Japan
Prior art keywords
task
task switching
counter
switching process
scanner
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.)
Expired - Fee Related
Application number
JP22203296A
Other languages
Japanese (ja)
Other versions
JPH1063513A (en
Inventor
元伸 安藤
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP22203296A priority Critical patent/JP3168921B2/en
Publication of JPH1063513A publication Critical patent/JPH1063513A/en
Application granted granted Critical
Publication of JP3168921B2 publication Critical patent/JP3168921B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、マルチタスク処理
を実行可能な情報処理装置に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to multi-task processing to perform an information processing equipment.

【0002】[0002]

【従来の技術】マルチタスク処理を実行可能な情報処理
装置は、パーソナルコンピュータやワークステーション
などに限らず、プリンタ機能やスキャナ機能などのコン
ピュータの周辺装置としての複数の機能を備えた多機能
周辺装置の制御装置などにも広く採用されている。
2. Description of the Related Art Information processing devices capable of executing multitask processing are not limited to personal computers and workstations, but are multifunctional peripheral devices having a plurality of functions as computer peripheral devices such as a printer function and a scanner function. Widely used for control devices.

【0003】このような情報処理装置においては、マル
チタスク処理を実現するために、タイマ割込によりタス
ク切替処理を実行することによって、所定時間毎にタス
クを切り替えることが一般に行われている。
In such an information processing apparatus, in order to realize a multitasking process, a task switching process is generally performed by executing a task switching process by a timer interrupt at predetermined time intervals.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、タイマ
割込によりタスク切替処理を実行する場合、タスク切替
処理がネスティングすることにより、タスク切替処理が
2回以上連続的に実行されてしまい、タスクの切替えが
所定の順序でなされないことがあった。
However, when the task switching process is executed by a timer interruption, the task switching process is nested, so that the task switching process is executed twice or more continuously, and the task switching process is performed. Were not done in the prescribed order.

【0005】たとえば、タイマ割込によりスキャナタス
クとプリンタタスクとが所定時間毎に交互に切り替えら
れて動作している場合を想定すると、タスク切替処理の
実行中にタイマ割込よりも上位の割込が発生した場合、
タスク切替処理が中断されて、上位の割込が処理され
る。そして、上位の割込が処理された後に、中断されて
いたタスク切替処理の残りが実行されるのであるが、こ
のとき、タスク切替えのためのタイマ割込が発生する
と、タスク切替処理がネスティングしてしまい、タスク
切替処理が2回連続的に実行される。すなわち、上位の
割込により中断されたタスク切替処理によりスキャナタ
スクからプリンタタスクに切り替わるはずであった場
合、上位の割込が処理された後に、先ず新たなタイマ割
込によるタスク切替処理が実行されてスキャナタスクか
らプリンタタスクに切り替わり、その後に、上位の割込
により中断されたタスク切替処理の残りが再開されてプ
リンタタスクからスキャナタスクに切り替わってしま
う。この結果、スキャナタスクからプリンタタスクに切
り替わるべきであったものが、上位の割込のためにスキ
ャナタスクに戻ってしまい、プリンタタスクの実行が1
回飛ばされてしまう。
For example, assuming that a scanner task and a printer task are alternately switched at predetermined time intervals by a timer interrupt and operate, a higher-order interrupt than the timer interrupt is performed during execution of the task switching process. Occurs,
The task switching process is interrupted, and the higher-order interrupt is processed. Then, after the upper-level interrupt is processed, the rest of the interrupted task switching process is executed. At this time, if a timer interrupt for task switching occurs, the task switching process nests. As a result, the task switching process is performed twice consecutively. That is, when the task switching process interrupted by the higher-order interrupt should switch from the scanner task to the printer task, after the higher-order interrupt is processed, first, the task switching process by a new timer interrupt is executed. Then, the task is switched from the scanner task to the printer task, and thereafter, the rest of the task switching process interrupted by the higher-order interrupt is resumed, and the task is switched from the printer task to the scanner task. As a result, the task that should have been switched from the scanner task to the printer task returns to the scanner task due to a higher-order interrupt, and the execution of the printer task becomes one.
Will be skipped twice.

【0006】本発明は、上記の点に鑑みて提案されたも
のであって、タスク切替処理のネスティングに起因する
タスク切替の誤動作を防止できる情報処理装置を提供す
ることを目的としている。
The present invention, which has been proposed in view of the above, and its object is to provide an information processing equipment which can prevent malfunction of the task switch due to nesting of task switching processing.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載した発明の情報処理装置は、マルチ
タスク処理を実行可能な情報処理装置であって、タイマ
割込を発生させてタスクの切替え処理を行うタスク切替
手段と、タスク切替手段によるタスク切替処理の開始前
に一定数を加算され、かつタスク切替処理の終了後に一
定数を減算されるカウンタ手段と、タスク切替処理の開
始時にカウンタ手段の内容が所定値以上であればタスク
切替処理におけるタスクの切替を禁止するタスク切替禁
止手段とを備えている。
In order to achieve the above object, an information processing apparatus according to the present invention is an information processing apparatus capable of executing a multitask process, wherein a timer interrupt is generated. Task switching means for performing task switching processing, counter means for adding a certain number before the task switching processing is started by the task switching means, and subtracting a certain number after the task switching processing ends, and starting the task switching processing A task switching prohibiting means for prohibiting task switching in the task switching process if the content of the counter means is at least a predetermined value.

【0008】この情報処理装置によれば、タスク切替手
段によるタスク切替処理の開始前に一定数を加算され、
かつタスク切替処理の終了後に一定数を減算されるカウ
ンタ手段と、タスク切替処理の開始時にカウンタ手段の
内容が所定値以上であればタスク切替処理におけるタス
クの切替を禁止するタスク切替禁止手段とを設けたの
で、カウンタ手段の内容によりネスティングの発生を検
出でき、ネスティングの発生時にはネスティングが解消
されるまでタスクの切替を禁止することから、タスク切
替処理のネスティングに起因するタスク切替の誤動作を
防止できる。
According to this information processing apparatus, a certain number is added before the task switching process is started by the task switching means,
Counter means for decrementing a certain number after the task switching processing is completed, and task switching inhibiting means for inhibiting task switching in the task switching processing if the content of the counter means is equal to or more than a predetermined value at the start of the task switching processing. Since the nesting is provided, the occurrence of nesting can be detected based on the content of the counter means, and when nesting occurs, task switching is prohibited until the nesting is eliminated. Therefore, malfunction of task switching due to nesting in the task switching process can be prevented. .

【0009】情報処理装置としては、スキャナ機能やコ
ピー機能などのコンピュータの周辺装置としての複数の
機能を有する多機能周辺装置の制御装置、多機能の事務
用電子機器の制御装置、多機能の家庭用電子機器の制御
装置などが考えられるが、これらに限らず、パーソナル
コンピュータやワークステーションなどのコンピュータ
自体も含まれる。
The information processing apparatus includes a control device for a multi-function peripheral device having a plurality of functions as a computer peripheral device such as a scanner function and a copy function, a control device for a multi-function office electronic device, and a multi-function home. For example, a control device of an electronic device for use may be considered, but not limited thereto, and a computer itself such as a personal computer or a workstation is also included.

【0010】カウンタ手段に加算あるいは減算される一
定数は、通常は1であるが、必ずしも1である必要はな
い。
The fixed number to be added or subtracted by the counter means is usually one, but need not always be one.

【0011】[0011]

【発明の実施の形態】以下、本発明の好ましい実施の形
態を、図面を参照しつつ具体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be specifically described below with reference to the drawings.

【0012】図1は、本発明に係る情報処理装置を備え
た多機能周辺装置をパーソナルコンピュータに接続した
状態の回路ブロック図である。パーソナルコンピュータ
1は、いわゆるマルチウインドウを用いたGUIを採用
しており、複数のアプリケーションソフトウェアを同時
に起動させておくことが可能である。多機能周辺装置
(以下「MFD」という)2は、ファクシミリ、プリン
タ、イメージスキャナ、およびコピー機などの複数の機
能を有している。なお、MFDはマルチ・ファンクショ
ン・ディバイスの略称である。
FIG. 1 is a circuit block diagram showing a state in which a multifunctional peripheral device having an information processing apparatus according to the present invention is connected to a personal computer. The personal computer 1 employs a GUI using a so-called multi-window, and can simultaneously activate a plurality of application software. The multifunctional peripheral device (hereinafter, referred to as “MFD”) 2 has a plurality of functions such as a facsimile, a printer, an image scanner, and a copier. Note that MFD is an abbreviation for multi-function device.

【0013】パーソナルコンピュータ1は、プロセサ1
1、EEPROM12、RAM13、ゲートアレイ1
4、インターフェース15、ハードディスク装置17、
フレキシブルディスクドライブ18、表示部19、操作
部20、およびLANアダプタ21を備えている。プロ
セサ11、EEPROM12、RAM13、ゲートアレ
イ14、およびインターフェース15は、バス線により
相互に接続されている。バス線は、データバス、アドレ
スバス、および制御信号線を含む。ハードディスク装置
17、フレキシブルディスクドライブ18、表示部1
9、操作部20、およびLANアダプタ21は、ゲート
アレイ14に接続されている。
The personal computer 1 includes a processor 1
1, EEPROM 12, RAM 13, gate array 1
4, interface 15, hard disk drive 17,
A flexible disk drive 18, a display unit 19, an operation unit 20, and a LAN adapter 21 are provided. The processor 11, the EEPROM 12, the RAM 13, the gate array 14, and the interface 15 are interconnected by a bus line. The bus lines include a data bus, an address bus, and a control signal line. Hard disk drive 17, flexible disk drive 18, display unit 1
The operation unit 9, the operation unit 20, and the LAN adapter 21 are connected to the gate array 14.

【0014】プロセサ11は、ハードディスク装置17
にインストールされているOSや各種のアプリケーショ
ンソフトウェアなどのプログラムに基づいて動作し、情
報処理を行う。EEPROM12は、各種の登録データ
などを記憶する。RAM13は、各種のアプリケーショ
ンソフトウェアなどによって利用され、各種のデータな
どを記憶する。ゲートアレイ14は、プロセサ11とハ
ードディスク装置17、フレキシブルディスクドライブ
18、表示部19、操作部20、およびLANアダプタ
21との間のインターフェースとして機能する。インタ
ーフェース15は、たとえばセントロニクスなどの規格
に基づいて、パーソナルコンピュータ1とMFD2との
間のデータの送受信を制御する。ハードディスク装置1
7は、各種のアプリケーションソフトウェアのプログラ
ムなどを記憶する。フレキシブルディスクドライブ18
は、フレキシブルディスクの内容を読み出し、またフレ
キシブルディスクにデータを書き込む。表示部19は、
たとえばLCDなどからなり、プロセサ11により制御
されて文字や図形などを表示する。操作部20は、たと
えばキーボードあるいはマウスなどからなり、使用者に
よる操作に基づいて操作信号を出力する。LANアダプ
タ21は、パーソナルコンピュータ1とLANとのイン
ターフェースとして機能する。
The processor 11 includes a hard disk drive 17
It operates based on programs such as an OS and various application software installed in the PC and performs information processing. The EEPROM 12 stores various registration data and the like. The RAM 13 is used by various application software and stores various data. The gate array 14 functions as an interface between the processor 11 and the hard disk device 17, flexible disk drive 18, display unit 19, operation unit 20, and LAN adapter 21. The interface 15 controls transmission and reception of data between the personal computer 1 and the MFD 2 based on, for example, standards such as Centronics. Hard disk drive 1
Reference numeral 7 stores various application software programs and the like. Flexible disk drive 18
Reads the contents of a flexible disk and writes data to the flexible disk. The display unit 19
For example, it is composed of an LCD or the like, and displays characters and figures under the control of the processor 11. The operation unit 20 includes, for example, a keyboard or a mouse, and outputs an operation signal based on an operation by a user. The LAN adapter 21 functions as an interface between the personal computer 1 and the LAN.

【0015】MFD2は、CPU31、ROM32、R
AM33、EEPROM34、ゲートアレイ35、イン
ターフェース36、スキャナ38、プリンタ39、モデ
ム40、操作部41、および表示部42を備えている。
CPU31、ROM32、RAM33、EEPROM3
4、ゲートアレイ35、およびインターフェース36
は、バス線により相互に接続されている。バス線は、デ
ータバス、アドレスバス、および制御信号線を含む。ゲ
ートアレイ35には、スキャナ38、プリンタ39、モ
デム40、操作部41、および表示部42が接続されて
いる。インターフェース36は、ケーブル51を介して
パーソナルコンピュータ1のインターフェース15に接
続されている。パーソナルコンピュータ1のLANアダ
プタ21にはLAN53が接続されており、MFD2の
モデム40には電話回線54が接続されている。
The MFD 2 includes a CPU 31, a ROM 32, an R
An AM 33, an EEPROM 34, a gate array 35, an interface 36, a scanner 38, a printer 39, a modem 40, an operation unit 41, and a display unit 42 are provided.
CPU31, ROM32, RAM33, EEPROM3
4. Gate array 35 and interface 36
Are interconnected by a bus line. The bus lines include a data bus, an address bus, and a control signal line. A scanner 38, a printer 39, a modem 40, an operation unit 41, and a display unit 42 are connected to the gate array 35. The interface 36 is connected to the interface 15 of the personal computer 1 via a cable 51. A LAN 53 is connected to the LAN adapter 21 of the personal computer 1, and a telephone line 54 is connected to the modem 40 of the MFD 2.

【0016】CPU31は、MFD2全体を制御する。
ROM32は、MFD2を制御するためのプログラムな
どを記憶している。RAM33は、各種のデータを記憶
する。EEPROM34は、各種のフラグや登録データ
などを記憶する。ゲートアレイ35は、CPU31とス
キャナ38、プリンタ39、モデム40、操作部41、
および表示部42との間のインターフェースとして機能
する。インターフェース36は、たとえばセントロニク
スなどの規格に基づいて、パーソナルコンピュータ1と
MFD2との間のデータの送受信を制御する。スキャナ
38は、原稿の画像を読み取って画像信号に変換する。
プリンタ39は、画像データに基づいて画像を印刷す
る。モデム40は、ファクシミリ通信の送受信に際し
て、送信データにより搬送波を変調し、また受信搬送波
を復調して受信データを取り出す。操作部41は、キー
スイッチ群などからなり、使用者による操作に応じて操
作信号を出力する。表示部42は、LCDなどからな
り、CPU31により制御されて各種の表示を行う。
The CPU 31 controls the entire MFD 2.
The ROM 32 stores a program for controlling the MFD 2 and the like. The RAM 33 stores various data. The EEPROM 34 stores various flags, registration data, and the like. The gate array 35 includes a CPU 31, a scanner 38, a printer 39, a modem 40, an operation unit 41,
And an interface with the display unit 42. The interface 36 controls transmission and reception of data between the personal computer 1 and the MFD 2 based on a standard such as Centronics. The scanner 38 reads an image of a document and converts it into an image signal.
The printer 39 prints an image based on the image data. When transmitting and receiving facsimile communication, the modem 40 modulates a carrier with transmission data and demodulates a received carrier to extract received data. The operation unit 41 includes a group of key switches and the like, and outputs an operation signal according to an operation by a user. The display unit 42 includes an LCD or the like, and performs various displays under the control of the CPU 31.

【0017】パーソナルコンピュータ1のハードディス
ク装置17には、MFD2のモデム40を用いてパーソ
ナルコンピュータ1と他のファクシミリ装置などとの間
でファクシミリ通信を行わせたり、プリンタ39を用い
てパーソナルコンピュータ1で作成した文書や画像を印
刷させたり、スキャナ38を用いて読み取らせた画像信
号をパーソナルコンピュータ1に取り込んだりという、
各種の機能を実現するためのMFD制御アプリケーショ
ンソフトウェアがインストールされている。このMFD
制御アプリケーションソフトウェアは、フレキシブルデ
ィスクドライブ18にフレキシブルディスクを挿入して
所定の操作を行うことにより、ハードディスク装置17
にインストールされる。このMFD制御アプリケーショ
ンソフトウェアは、テキストデータをビットマップデー
タに変換するなどのデータ変換を行うFAXドライバと
呼ばれるソフトウェア、通信履歴を管理および表示する
ログマネージャと呼ばれるソフトウェア、およびパーソ
ナルコンピュータ1とMFD2との間のデータの送受を
管理するステータスモニタと呼ばれるソフトウェアなど
により構成されている。
The hard disk device 17 of the personal computer 1 allows the personal computer 1 to perform facsimile communication between the personal computer 1 and another facsimile device using the modem 40 of the MFD 2 or creates the personal computer 1 using the printer 39. The personal computer 1 captures an image signal read out using the scanner 38 or prints out a scanned document or image.
MFD control application software for realizing various functions is installed. This MFD
The control application software inserts the flexible disk into the flexible disk drive 18 and performs a predetermined operation, so that the hard disk drive 17
Installed in The MFD control application software includes software called a FAX driver for performing data conversion such as conversion of text data to bitmap data, software called a log manager for managing and displaying a communication history, and communication between the personal computer 1 and the MFD 2. It is composed of software called a status monitor for managing the transmission and reception of the data.

【0018】すなわち、MFD2のCPU31は、タイ
マ割込を発生させてタスクの切替え処理を行うタスク切
替手段と、タスク切替手段によるタスク切替処理の開始
前に一定数を加算され、かつタスク切替処理の終了後に
一定数を減算されるカウンタ手段と、タスク切替処理の
開始時にカウンタ手段の内容が所定値以上であればタス
ク切替処理におけるタスクの切替を禁止するタスク切替
禁止手段とを実現している。
That is, the CPU 31 of the MFD 2 generates a timer interrupt and performs a task switching process, and a certain number is added before the task switching process is started by the task switching device. Counter means for decrementing a certain number after completion and task switching prohibiting means for prohibiting task switching in task switching processing when the content of the counter means is equal to or more than a predetermined value at the start of task switching processing.

【0019】また、MFD2のROM32は、タイマ割
込を発生させてタスクの切替え処理を行うタスク切替プ
ログラムと、タスク切替プログラムによるタスク切替処
理の開始前に一定数を加算され、かつタスク切替処理の
終了後に一定数を減算されるカウンタ手段の内容が、タ
スク切替処理の開始時に所定値以上であればタスク切替
処理におけるタスクの切替を禁止するタスク切替禁止プ
ログラムとを含むプログラムが格納されている記憶媒体
を構成している。
The ROM 32 of the MFD 2 has a task switching program for generating a timer interrupt and performing task switching processing, and a certain number added before the task switching processing by the task switching program is started. A program storing a program including a task switching prohibition program for prohibiting task switching in the task switching process if the content of the counter means for decrementing a certain number after completion is equal to or more than a predetermined value at the start of the task switching process. Make up the medium.

【0020】次に、このように構成されたMFD2の動
作の要点について説明する。このMFD2は、スキャナ
38により原稿を読み取らせ、その画像信号を画像デー
タに変換してパーソナルコンピュータ1に出力するスキ
ャナ機能と、パーソナルコンピュータ1から入力された
プリントデータに基づいてプリンタ39に画像を印刷さ
せるプリンタ機能と、スキャナ38により読み取らせた
画像をプリンタ39に印刷させるコピー機能と、スキャ
ナ38により原稿を読み取らせ、その画像信号をファク
シミリデータに変換して電話回線54に送出し、また電
話回線54を介して入力されたファクシミリデータをプ
リンタ39に印刷させるファクシミリ機能と、パーソナ
ルコンピュータ1から入力されたファクシミリデータを
電話回線54に送出し、また電話回線54を介して入力
されたファクシミリデータをパーソナルコンピュータ1
に出力するPCファクシミリ機能とを有している。
Next, the essential points of the operation of the MFD 2 configured as described above will be described. The MFD 2 causes a scanner 38 to read an original, converts the image signal into image data and outputs the image data to the personal computer 1, and prints an image on a printer 39 based on print data input from the personal computer 1. A printer function for causing the printer 39 to print an image read by the scanner 38; a document function for causing the scanner 38 to read an original; converting the image signal into facsimile data and sending it to the telephone line 54; A facsimile function for causing the printer 39 to print facsimile data input via the telephone 54, transmitting facsimile data input from the personal computer 1 to the telephone line 54, and transmitting facsimile data input via the telephone line 54 to the personal computer 1. Compilation Over data 1
And a PC facsimile function for outputting to a PC.

【0021】そして、MFD2のCPU31は、スキャ
ナ機能を実現するためのスキャナタスクと、プリンタ機
能を実現するためのプリンタタスクと、コピー機能を実
現するためのコピータスクと、ファクシミリ機能を実現
するためのファクシミリタスクと、PCファクシミリ機
能を実現するためのPCファクシミリタスクとを実行す
る。さらに、これら機能のうちの複数の機能を同時に動
作させるに際しては、それらの機能を実現するための複
数のタスクをタイマ割込により所定時間毎に切り替えて
マルチタスク処理を実行する。
The CPU 31 of the MFD 2 has a scanner task for realizing the scanner function, a printer task for realizing the printer function, a copy task for realizing the copy function, and a facsimile function. A facsimile task and a PC facsimile task for realizing a PC facsimile function are executed. Further, when simultaneously operating a plurality of these functions, a plurality of tasks for realizing the functions are switched at predetermined time intervals by a timer interrupt to execute a multitask process.

【0022】ところで、タイマ割込によりタスク切替処
理を実行しているときに、上位の割込が発生すると、タ
スク切替処理が中断されて、上位の割込が処理される。
そして、上位の割込が処理された後に、中断されていた
タスク切替処理の残りが実行されるのであるが、このと
き、タスク切替えのためのタイマ割込が発生すると、タ
スク切替処理がネスティングしてしまい、何らの対処も
施さなければ、タスク切替処理が2回連続的に実行され
る。たとえば、上位の割込により中断されたタスク切替
処理によりスキャナタスクからプリンタタスクに切り替
わるはずであった場合、上位の割込が処理された後に、
先ず新たなタイマ割込によるタスク切替処理が実行され
てスキャナタスクからプリンタタスクに切り替わり、そ
の後に、上位の割込により中断されたタスク切替処理の
残りが再開されてプリンタタスクからスキャナタスクに
切り替わってしまう。この結果、スキャナタスクからプ
リンタタスクに切り替わるべきであったものが、上位の
割込のためにスキャナタスクに戻ってしまい、プリンタ
タスクの実行が1回飛ばされてしまう。
By the way, if a higher-order interrupt occurs while the task switching process is being executed by a timer interrupt, the task switching process is interrupted and the higher-order interrupt is processed.
Then, after the upper-level interrupt is processed, the rest of the interrupted task switching process is executed. At this time, if a timer interrupt for task switching occurs, the task switching process nests. If no action is taken, the task switching process is performed twice consecutively. For example, if the task switching process interrupted by a higher-order interrupt should have switched from a scanner task to a printer task, after the higher-order interrupt has been processed,
First, a task switching process by a new timer interrupt is executed and the task is switched from the scanner task to the printer task. After that, the rest of the task switching process interrupted by the higher-order interrupt is resumed and the task is switched from the printer task to the scanner task. I will. As a result, the task that should have been switched from the scanner task to the printer task returns to the scanner task due to a higher-order interrupt, and the execution of the printer task is skipped once.

【0023】このようなタスク切替処理のネスティング
による不具合を解消するために、タスク切替処理の開始
前にインクリメントされ、かつタスク切替処理の終了後
にデクリメントされるカウンタを設け、タスク切替処理
の開始時にカウンタの内容が2以上であればタスク切替
処理におけるタスクの切替を禁止するようにしている。
なお、カウンタは、MFD2のRAM33を利用するこ
とにより実現している。
In order to solve such a problem caused by the nesting of the task switching process, a counter is provided which is incremented before the task switching process is started and decremented after the task switching process is completed. If the content of is more than one, the task switching in the task switching process is prohibited.
The counter is realized by using the RAM 33 of the MFD 2.

【0024】いま、カウンタの内容が0であったとする
と、タイマ割込によりタスク切替処理が開始される前に
カウンタがインクリメントされるので、タイマ割込によ
るタスク切替処理の開始時点では、カウンタの内容は1
である。ここで、タスク切替処理の実行中に上位の割込
が発生し、タスク切替処理が中断されると、タスク切替
処理は終了しないので、カウンタの内容は1を維持す
る。上位の割込が処理されると、中断されていたタスク
切替処理の残りが実行されることになるのであるが、こ
のとき、タスク切替処理を行うためのタイマ割込が発生
すると、先ずそのタスク切替処理が実行される。したが
って、そのタスク切替処理の開始時点では、カウンタの
内容は2になっている。このようにカウンタの内容が2
以上になった場合、タスクの切替を行わずにタスク切替
処理を終了する。タスクの切替えは行われなかったが、
タスク切替処理は終了したので、この時点でカウンタの
内容は1になる。そして、上位の割込により中断された
タスク切替処理の残りが再開されてタスクの切替えが実
際に行われ、その終了後にカウンタの内容がデクリメン
トされて0になる。
Assuming that the content of the counter is 0, the counter is incremented before the task switching processing is started by the timer interruption. Is 1
It is. Here, if a higher-level interrupt occurs during the execution of the task switching process and the task switching process is interrupted, the task switching process does not end, so that the content of the counter is maintained at 1. When the higher-order interrupt is processed, the rest of the interrupted task switching process is executed. At this time, when a timer interrupt for performing the task switching process occurs, the task The switching process is performed. Therefore, the content of the counter is 2 at the start of the task switching process. Thus, the content of the counter is 2
In this case, the task switching process ends without switching the task. The task was not switched,
Since the task switching process has been completed, the content of the counter becomes 1 at this point. Then, the rest of the task switching process interrupted by the higher-order interrupt is restarted, the task switching is actually performed, and after the termination, the content of the counter is decremented to zero.

【0025】このように、タスク切替処理がネスティン
グすると、その入れ子構造の階層数に応じてカウンタの
内容が2以上の値になり、この場合にはタスクの切替え
を行わずにタスク切替処理を終了するので、ネスティン
グが解消するまではタスクの切替えが行われない。した
がって、タスク切替処理のネスティングに起因するタス
ク切替の誤動作を防止できる。
As described above, when the task switching processing is nested, the content of the counter becomes a value of 2 or more according to the number of layers of the nested structure. In this case, the task switching processing is terminated without switching the task. Therefore, the task is not switched until the nesting is eliminated. Therefore, erroneous task switching due to nesting of task switching processing can be prevented.

【0026】次に、上記タスク切替処理およびタスク切
替禁止処理を含むタスク切替制御処理の手順について、
図2に示すフローチャートを参照しながら説明する。
Next, the procedure of the task switching control process including the task switching process and the task switching prohibition process will be described.
This will be described with reference to the flowchart shown in FIG.

【0027】タスク切替のための割込が発生すると、M
FD2のCPU31が、カウンタをインクリメントし
(S1)、カウンタ値が2以上であるか否かを判断する
(S2)。
When an interrupt for task switching occurs, M
The CPU 31 of the FD 2 increments the counter (S1), and determines whether the counter value is 2 or more (S2).

【0028】カウンタ値が2以上でなければ(S2:N
O)、CPU31が、タスクの移行設定処理を実行し
(S3)、カウンタをデクリメントして(S4)、この
ルーチンを終了する。
If the counter value is not 2 or more (S2: N
O), the CPU 31 executes a task transition setting process (S3), decrements the counter (S4), and ends this routine.

【0029】S2において、カウンタ値が2以上であれ
ば(S2:YES)、CPU31がタスクの移行設定処
理を実行せずに、S4に進んでカウンタをデクリメント
してこのルーチンを終了する。
In S2, if the counter value is 2 or more (S2: YES), the CPU 31 does not execute the task transition setting process, proceeds to S4, decrements the counter, and ends this routine.

【0030】すなわち、このタスク切替制御処理におい
ては、タスク移行設定(S3)の前にカウンタをインク
リメントし(S1)、タスク移行設定(S3)の後でカ
ウンタをデクリメントする(S4)。したがって、タイ
マ割込よりも上位の割込によってタスク移行設定(S
3)が中断しなければ、タスク移行設定(S3)の開始
時には常にカウンタの内容は1であり、タスク移行設定
(S3)が実行されてタスクが切替えられる。
That is, in this task switching control process, the counter is incremented before the task transfer setting (S3) (S1), and after the task transfer setting (S3), the counter is decremented (S4). Therefore, the task transfer setting (S
If 3) is not interrupted, the content of the counter is always 1 at the start of the task transfer setting (S3), and the task transfer setting (S3) is executed to switch the task.

【0031】一方、タイマ割込よりも上位の割込によっ
てタスク移行設定(S3)が中断した場合、カウンタの
内容は1のままである。そして、上位の割込の処理が終
了し、中断していたタスク移行設定(S3)を再開した
ときに、タスク切替のためのタイマ割込が発生すれば、
それによってタスク移行設定(S3)が再度中断し、新
たなタイマ割込によるタスク切替制御処理が開始され
る。このとき、一旦再開されたタスク移行設定(S3)
はまだ終了していないので、カウンタの内容は1のまま
である。したがって、この新たなタスク切替制御処理に
おいては、タスク移行設定(S3)の開始時にカウンタ
の内容が2になっており、タスク移行設定(S3)が実
行されずにカウンタがデクリメントされ(S4)、カウ
ンタの内容が1になる。この後、再度中断されたタスク
移行設定(S3)の残りが再開されてタスクが切り替わ
り、カウンタがデクリメントされて(S4)、カウンタ
の内容が0になる。
On the other hand, when the task transfer setting (S3) is interrupted by an interrupt higher than the timer interrupt, the content of the counter remains 1. Then, when the processing of the higher-order interrupt is completed and the interrupted task transfer setting (S3) is resumed, if a timer interrupt for task switching occurs,
As a result, the task transfer setting (S3) is interrupted again, and the task switching control process by a new timer interrupt is started. At this time, the task transition setting once resumed (S3)
Has not been completed yet, the content of the counter remains 1. Therefore, in the new task switching control process, the content of the counter is 2 at the start of the task transfer setting (S3), and the counter is decremented without executing the task transfer setting (S3) (S4). The content of the counter becomes 1. Thereafter, the rest of the suspended task transfer setting (S3) is resumed, the task is switched, the counter is decremented (S4), and the content of the counter becomes zero.

【0032】このように、タイマ割込によるタスク切替
処理がネスティングした場合、カウンタの内容が1以下
になるまで、すなわちネスティングが解消されるまで
は、タスク移行設定(S3)を行わないので、タスク切
替処理のネスティングによるタスク切替の誤動作を防止
できる。
As described above, when the task switching processing by the timer interruption is nested, the task transition setting (S3) is not performed until the content of the counter becomes 1 or less, that is, until the nesting is canceled. Erroneous operation of task switching due to nesting of switching processing can be prevented.

【0033】なお、上記実施形態においては、RAM3
3を利用することによりカウンタを実現したが、CPU
31に内蔵された図示しないレジスタを利用してカウン
タを実現してもよい。
In the above embodiment, the RAM 3
3 is realized by using the counter.
The counter may be realized by using a register (not shown) built in 31.

【0034】[0034]

【発明の効果】以上説明したように請求項1に記載した
発明の情報処理装置によれば、タスク切替手段によるタ
スク切替処理の開始前に一定数を加算され、かつタスク
切替処理の終了後に一定数を減算されるカウンタ手段
と、タスク切替処理の開始時にカウンタ手段の内容が所
定値以上であればタスク切替処理におけるタスクの切替
を禁止するタスク切替禁止手段とを設けたので、カウン
タ手段の内容によりネスティングの発生を検出でき、ネ
スティングの発生時にはネスティングが解消されるまで
タスクの切替を禁止することから、タスク切替処理のネ
スティングに起因するタスク切替の誤動作を防止でき
る。
As described above, according to the information processing apparatus of the first aspect, a certain number is added before the task switching process is started by the task switching means, and the fixed number is added after the task switching process ends. The counter means for decrementing the number and the task switching inhibiting means for inhibiting task switching in the task switching processing if the content of the counter means is equal to or more than a predetermined value at the start of the task switching processing. Accordingly, the occurrence of nesting can be detected, and when nesting occurs, task switching is prohibited until nesting is eliminated. Therefore, malfunction of task switching due to nesting of task switching processing can be prevented.

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

【図1】本発明に係る情報処理装置を備えた多機能周辺
装置をパーソナルコンピュータに接続した状態の回路ブ
ロック図である。
FIG. 1 is a circuit block diagram illustrating a state in which a multifunction peripheral device including an information processing device according to the present invention is connected to a personal computer.

【図2】図1に示す情報処理装置によるタスク切替制御
処理の手順を説明するフローチャートである。
FIG. 2 is a flowchart illustrating a procedure of a task switching control process performed by the information processing apparatus illustrated in FIG. 1;

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

1 パーソナルコンピュータ 2 MFD 31 CPU 32 ROM 33 RAM 34 EEPROM 35 ゲートアレイ 38 スキャナ 39 プリンタ 40 モデム 41 操作部 42 表示部 51 ケーブル 54 電話回線 DESCRIPTION OF SYMBOLS 1 Personal computer 2 MFD 31 CPU 32 ROM 33 RAM 34 EEPROM 35 Gate array 38 Scanner 39 Printer 40 Modem 41 Operation part 42 Display part 51 Cable 54 Telephone line

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マルチタスク処理を実行可能な情報処理
装置であって、 タイマ割込を発生させてタスクの切替え処理を行うタス
ク切替手段と、 前記タスク切替手段によるタスク切替処理の開始前に一
定数を加算され、かつ前記タスク切替処理の終了後に前
記一定数を減算されるカウンタ手段と、 前記タスク切替処理の開始時に前記カウンタ手段の内容
が所定値以上であれば前記タスク切替処理におけるタス
クの切替を禁止するタスク切替禁止手段とを備えたこと
を特徴とする情報処理装置。
1. An information processing apparatus capable of executing a multi-task process, comprising: a task switching unit for performing a task switching process by generating a timer interrupt; and a constant before the task switching process is started by the task switching unit. Counter means for adding a number and subtracting the fixed number after the task switching processing is completed; and when the content of the counter means is equal to or more than a predetermined value at the start of the task switching processing, An information processing apparatus comprising: a task switching prohibition unit that prohibits switching.
JP22203296A 1996-08-23 1996-08-23 Information processing device Expired - Fee Related JP3168921B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22203296A JP3168921B2 (en) 1996-08-23 1996-08-23 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22203296A JP3168921B2 (en) 1996-08-23 1996-08-23 Information processing device

Publications (2)

Publication Number Publication Date
JPH1063513A JPH1063513A (en) 1998-03-06
JP3168921B2 true JP3168921B2 (en) 2001-05-21

Family

ID=16776022

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22203296A Expired - Fee Related JP3168921B2 (en) 1996-08-23 1996-08-23 Information processing device

Country Status (1)

Country Link
JP (1) JP3168921B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116963B (en) * 2013-01-30 2015-03-18 上海城建市政工程(集团)有限公司 Security system based on audio signals and application method of security system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116963B (en) * 2013-01-30 2015-03-18 上海城建市政工程(集团)有限公司 Security system based on audio signals and application method of security system

Also Published As

Publication number Publication date
JPH1063513A (en) 1998-03-06

Similar Documents

Publication Publication Date Title
US8154760B2 (en) Image forming apparatus, content display method, and computer program product
JPH1065893A (en) Multifunctional peripheral device and recording medium
JP3767026B2 (en) Multifunctional peripheral device and storage medium
JP3702546B2 (en) Multifunctional peripheral device and storage medium
JP3168921B2 (en) Information processing device
JP3806984B2 (en) Multifunctional peripheral
US7793016B2 (en) Information processing apparatus, its control method and control program
JP3806987B2 (en) Multifunctional peripheral
US6804017B1 (en) Information processing device with determination feature
JP2001356853A (en) Image processor and state display control method of the same
KR100282938B1 (en) Host data transmission method and MFP data reception method
JP2000115277A (en) Coding/decoding device and image formation system
US6374284B1 (en) Information processing method and apparatus and a storage medium
JP3347580B2 (en) Information processing device and storage medium
JP3738491B2 (en) Communication device
US20010021032A1 (en) Printing control device and image processing apparatus using the same
JP3050132B2 (en) Multifunctional peripheral device and storage medium
JP2007144794A (en) Image forming device
JP2010039689A (en) Information processor
JP3052846B2 (en) Multifunctional peripheral device and storage medium
JP3079999B2 (en) Information processing device and storage medium
KR100208035B1 (en) Facsimile data processing method for complex apparatus
KR100242010B1 (en) Indicated method of printing state of multi-function product connected a computer
JP2004056445A (en) Image forming device, image output control method, computer readable storage medium and program
JPH10111810A (en) Information processor and storage medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080316

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130316

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130316

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140316

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees