JP2016192011A - Electronic apparatus and memory management program - Google Patents

Electronic apparatus and memory management program Download PDF

Info

Publication number
JP2016192011A
JP2016192011A JP2015070632A JP2015070632A JP2016192011A JP 2016192011 A JP2016192011 A JP 2016192011A JP 2015070632 A JP2015070632 A JP 2015070632A JP 2015070632 A JP2015070632 A JP 2015070632A JP 2016192011 A JP2016192011 A JP 2016192011A
Authority
JP
Japan
Prior art keywords
job
work area
memory
management unit
memory management
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
JP2015070632A
Other languages
Japanese (ja)
Inventor
哲之 千村
Tetsuyuki Chimura
哲之 千村
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2015070632A priority Critical patent/JP2016192011A/en
Publication of JP2016192011A publication Critical patent/JP2016192011A/en
Pending legal-status Critical Current

Links

Images

Abstract

【課題】少ないメモリー容量でも適切にマルチタスク機能を実行できる電子機器およびメモリー管理プログラムの提供。
【解決手段】複数の処理からなるジョブが実行される制御部と、前記処理を実行するための作業領域が確保されるメモリーと、前記メモリー上に、前記作業領域を確保するメモリー管理部と、前記処理ごとの実行に必要な前記作業領域の量を把握し、実行する前記処理に必要な前記作業領域を前記メモリー管理部に確保させ、1つの前記処理の完了後、次の前記処理の実行時に、完了した前記処理において既に確保されている前記作業領域の量を、前記次の処理に必要な量に調整するように前記メモリー管理部に指示するジョブ管理部とを備える。
【選択図】図6
To provide an electronic device and a memory management program capable of appropriately executing a multitask function even with a small memory capacity.
A control unit that executes a job including a plurality of processes, a memory that secures a work area for executing the process, a memory management part that secures the work area on the memory, The amount of the work area necessary for execution of each process is grasped, and the work area necessary for the process to be executed is secured in the memory management unit, and after the completion of one process, execution of the next process is performed. And a job management unit that instructs the memory management unit to adjust the amount of the work area that has already been secured in the completed processing to the amount necessary for the next processing.
[Selection] Figure 6

Description

本発明は、メモリーを利用して処理を行う電子機器およびメモリー管理プログラムに関する。   The present invention relates to an electronic device that performs processing using a memory and a memory management program.

従来、情報処理を行う電子機器、特に組込み機器では、処理を行うための領域が確保されるメモリーの容量が少ない(メモリーのリソースが充分ではない)状況において、効率的に処理を行うための様々な工夫が行われてきた。   2. Description of the Related Art Conventionally, in electronic devices that perform information processing, particularly embedded devices, there are various ways to perform processing efficiently in a situation where there is little memory capacity to secure an area for processing (memory resources are not sufficient). Have been devised.

例えば、特許文献1において開示されている技術では、複数のタスクが一定容量のメモリーを共有してマルチタスク処理を行う情報処理装置において、あるタスクがメモリーを要求した時にメモリーに空きが無い場合、メモリー上に既に領域を確保している他のタスクに対してメモリー解放要求を出し、解放されたメモリーの領域をメモリー要求したタスクに即座に割り当てている。   For example, in the technology disclosed in Patent Document 1, in an information processing apparatus in which a plurality of tasks share a certain amount of memory and perform multitask processing, when a task requests memory, there is no free space in the memory. A memory release request is issued to another task that has already secured an area in memory, and the released memory area is immediately allocated to the task that requested the memory.

そのため、特許文献1の技術を用いた情報処理装置では、メモリー容量が少ない場合でも、マルチタスク機能を実行することが出来るとしている。   For this reason, the information processing apparatus using the technique disclosed in Patent Document 1 can execute the multitask function even when the memory capacity is small.

特開平9−62566号公報JP 9-62566 A

しかし、特許文献1の技術では、タスク1がメモリー上の領域を確保して処理を行っているときに、新たにタスク2がメモリー上の作業領域を要求し、タスク1が使用していた領域が解放されタスク2に割り当てられると、タスク2は処理を開始できるがタスク1は処理が行えない状態になる。   However, in the technique of Patent Document 1, when Task 1 secures an area on the memory and performs processing, Task 2 newly requests a work area on the memory, and Task 1 used the area. Is released and assigned to task 2, task 2 can start processing, but task 1 cannot be processed.

そのため、タスク1が処理を再開するには、タスク2の処理が終了し、再度メモリーがタスク1に割り当てられるまで待たなければならなかった。   For this reason, in order for task 1 to resume processing, it has been necessary to wait until the processing of task 2 is completed and memory is allocated to task 1 again.

以上のような事情に鑑み、本発明の目的は、少ないメモリー容量でも適切にマルチタスク機能を実行できる電子機器およびメモリー管理プログラムを提供することにある。   In view of the circumstances as described above, an object of the present invention is to provide an electronic device and a memory management program capable of appropriately executing a multitask function even with a small memory capacity.

上記目的を達成するため、本発明の一形態に係る電子機器は、複数の処理からなるジョブが実行される制御部と、前記処理を実行するための作業領域が確保されるメモリーと、前記メモリー上に、前記作業領域を確保するメモリー管理部と、前記処理ごとの実行に必要な前記作業領域の量を把握し、実行する前記処理に必要な前記作業領域を前記メモリー管理部に確保させ、1つの前記処理の完了後、次の前記処理の実行時に、完了した前記処理において既に確保されている前記作業領域の量を、前記次の処理に必要な量に調整するように前記メモリー管理部に指示するジョブ管理部とを備える。そのため、少ないメモリー容量でも適切にマルチタスク(マルチジョブ)機能を実行できる。   To achieve the above object, an electronic device according to an aspect of the present invention includes a control unit that executes a job including a plurality of processes, a memory that secures a work area for executing the processes, and the memory On top of this, a memory management unit that secures the work area, grasps the amount of the work area necessary for execution of each process, and allows the memory management part to secure the work area necessary for the process to be executed, After the completion of one of the processes, the memory management unit adjusts the amount of the work area already secured in the completed process to the amount necessary for the next process when the next process is executed. A job management unit for instructing Therefore, the multitask (multijob) function can be appropriately executed even with a small memory capacity.

上記目的を達成するため、本発明の一形態に係るメモリー管理プログラムは、複数の処理からなるジョブが制御部上で実行されるとき、前記処理を実行するための作業領域をメモリー上に確保し、前記処理ごとの実行に必要な前記作業領域の量を把握し、1つの前記処理の完了後、次の前記処理の実行時に、完了した前記処理において既に確保されている前記作業領域の量を、前記次の処理に必要な量に調整する手順をコンピューターに実行させる。   In order to achieve the above object, a memory management program according to an aspect of the present invention secures a work area for executing a process on the memory when a job including a plurality of processes is executed on the control unit. , Grasp the amount of the work area necessary for execution of each process, and after the completion of one of the processes, the amount of the work area already secured in the completed process when the next process is executed Then, the computer is caused to execute a procedure for adjusting to an amount necessary for the next processing.

以上のように、本発明によれば、少ないメモリー容量でも適切にマルチタスク機能を実行できる。   As described above, according to the present invention, the multitask function can be appropriately executed even with a small memory capacity.

電子機器10の構成図である。1 is a configuration diagram of an electronic device 10. CPU11により実現される機能ブロックを示す図である。It is a figure which shows the functional block implement | achieved by CPU11. 典型的な技術によって、各ジョブがメモリーを使用する状況を示す図である。It is a figure which shows the condition where each job uses memory by typical technique. 典型的な技術によって行われるメモリー管理の流れについて説明するためのフローチャートである。It is a flowchart for demonstrating the flow of the memory management performed by a typical technique. 本発明の技術によって、各ジョブがメモリーを使用する状況を示す図である。It is a figure which shows the condition where each job uses memory by the technique of this invention. 本発明の技術によって行われるメモリー管理の流れについて説明するためのフローチャートである。It is a flowchart for demonstrating the flow of the memory management performed by the technique of this invention.

以下、図面を参照しながら、本発明の実施形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

なお、以下の説明では、最初に本発明の一実施形態にかかる電子機器の構成を説明し、次いで、典型的な技術によるメモリーの管理方法とその管理方法による処理の流れを説明し、最後に、本発明の一実施形態にかかる電子機器でのメモリー管理方法とその管理方法による処理の流れについて説明する。   In the following description, the configuration of an electronic device according to an embodiment of the present invention will be described first, then the memory management method according to a typical technique and the flow of processing by the management method will be described, and finally A memory management method in an electronic device according to an embodiment of the present invention and a flow of processing by the management method will be described.

なお、上記の説明では、複数の処理を同時並行して行うことに関して、1つの処理をタスクと呼び、同時並行して処理することをマルチタスクと呼んだが、以下の説明では、1つの処理をジョブと呼び、同時並行して処理することをマルチジョブと呼ぶ。   In the above description, one process is referred to as a task and multiple processes are referred to as multitasking in connection with performing a plurality of processes in parallel. In the following description, one process is referred to as a multitask. Calling a job and processing in parallel are called multi-jobs.

例えば、本発明の一実施形態にかかる電子機器を画像形成装置(MFP、Multifunction Peripheral)として実現する場合には、紙原稿をスキャンして画像編集し印刷するコピー処理や、PC(Personal Computer)などのホストコンピューターから受信したデータを印刷する印刷処理などが、それぞれ1つのジョブとなる。   For example, when an electronic apparatus according to an embodiment of the present invention is realized as an image forming apparatus (MFP, Multifunction Peripheral), a copy process for scanning a paper document, editing an image, and printing, a PC (Personal Computer), or the like A print process for printing data received from the host computer is a single job.

また、コピー処理は、紙原稿をスキャンしてメモリーに読み込むまでの入力処理と、入力処理が完了した後に行われる、メモリーに読み込んだ画像データを編集して印刷する編集処理とに大別することが出来る。   Copy processing can be broadly divided into input processing until a paper document is scanned and read into memory, and editing processing that is performed after the input processing is completed and the image data read into memory is edited and printed. I can do it.

画像形成装置では、例えば、マルチジョブとして、コピー処理と印刷処理を同時並行して行うことが出来る。   In the image forming apparatus, for example, a copy process and a print process can be simultaneously performed as a multi-job.

以下の説明では、本発明の一実施形態にかかる電子機器が、入力処理と編集処理を行うコピー処理(以下、ジョブ1と呼ぶ)と、印刷処理(以下、ジョブ2と呼ぶ)を行うものとして、説明する。   In the following description, it is assumed that an electronic device according to an embodiment of the present invention performs a copy process (hereinafter referred to as job 1) for performing an input process and an edit process, and a print process (hereinafter referred to as job 2). ,explain.

[構成]
次に、電子機器10の構成について説明する。電子機器10の構成図を図1に示す。
[Constitution]
Next, the configuration of the electronic device 10 will be described. FIG. 1 shows a configuration diagram of the electronic device 10.

図1に示すように、電子機器10は、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、操作入力部14、通信部15、表示部16、および記憶部17を有し、これら各ブロックがバス18を介して接続されている。なお、RAM13とメモリーは、同じものである。   As shown in FIG. 1, the electronic device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, an operation input unit 14, a communication unit 15, a display unit 16, and A storage unit 17 is provided, and these blocks are connected via a bus 18. Note that the RAM 13 and the memory are the same.

ROM12は、各種の処理を実行するためのファームウェア等の複数のプログラムやデータを記憶する。RAM13は、CPU11の作業用領域として用いられ、OS(Operating System)、実行中の各種アプリケーション、処理中のジョブに対応する各種データを一時的に保持する。   The ROM 12 stores a plurality of programs and data such as firmware for executing various processes. The RAM 13 is used as a work area for the CPU 11 and temporarily holds an OS (Operating System), various applications being executed, and various data corresponding to jobs being processed.

記憶部17は、例えばHDD(Hard Disk Drive)や、フラッシュメモリー、その他の不揮発性メモリーである。記憶部17には、OSや各種アプリケーション、各種データが記憶される。   The storage unit 17 is, for example, an HDD (Hard Disk Drive), a flash memory, or other nonvolatile memory. The storage unit 17 stores an OS, various applications, and various data.

通信部15は、外部のPCなどと情報のやりとりを行う為のネットワークと結ばれている。   The communication unit 15 is connected to a network for exchanging information with an external PC or the like.

CPU11は、ROM12や記憶部17に格納された複数のプログラムのうち、外部のPCまたは操作入力部14から与えられる命令に対応するプログラムをRAM13に展開し、この展開されたプログラムにしたがって、表示部16及び記憶部17を適宜制御する制御部である。   The CPU 11 expands a program corresponding to a command given from an external PC or the operation input unit 14 among the plurality of programs stored in the ROM 12 or the storage unit 17 in the RAM 13, and displays the display unit according to the expanded program. 16 and a control unit that appropriately controls the storage unit 17.

操作入力部14は、例えばマウス等のポインティングデバイス、キーボード、タッチパネル、その他の操作装置である。   The operation input unit 14 is, for example, a pointing device such as a mouse, a keyboard, a touch panel, and other operation devices.

表示部16は、例えば液晶ディスプレイ、EL(Electro-Luminescence)ディスプレイ、プラズマディスプレイ等である。   The display unit 16 is, for example, a liquid crystal display, an EL (Electro-Luminescence) display, a plasma display, or the like.

次に、CPU11においてプログラムが実行されることにより実現される機能ブロックについて説明する。図2は、CPU11により実現される機能ブロックを示す図である。   Next, functional blocks realized by executing a program in the CPU 11 will be described. FIG. 2 is a diagram illustrating functional blocks realized by the CPU 11.

電子機器10のCPU11において実現される機能ブロックは、ジョブ管理部11aおよびメモリー管理部11bである。   Functional blocks implemented in the CPU 11 of the electronic device 10 are a job management unit 11a and a memory management unit 11b.

ジョブ管理部11aは、CPU11において実行される各ジョブを管理する。各ジョブは、複数の処理からなるものであってもよい。より具体的には、ユーザーから指定されたジョブに含まれる各処理の実行を開始したり、終了させたりする。また、ジョブ管理部11aは、1つのジョブ、例えば、コピー処理において最初に実行される入力処理が完了すると、完了通知をジョブから受け取って各ジョブ内のどの処理が実行されているかを認識することが出来てもよい。   The job management unit 11 a manages each job executed by the CPU 11. Each job may consist of a plurality of processes. More specifically, execution of each process included in a job designated by the user is started or ended. In addition, when the input process executed first in the copy process, for example, the copy process is completed, the job management unit 11a receives a completion notification from the job and recognizes which process in each job is executed. May be possible.

メモリー管理部11bは、各ジョブの各処理から、使用するメモリーの作業領域の確保の要求を受け付け、メモリー内に要求された量の作業領域を確保してジョブに使用させる。また、メモリー管理部11bは、既にジョブのある処理のために作業領域が確保されているときそのジョブの次の処理に必要な量に確保する作業領域の量を調整したり、各ジョブからの作業領域解放要求を受け付け、指定された量の作業領域を解放したりする。   The memory management unit 11b receives a request to secure a work area of the memory to be used from each process of each job, and secures the requested amount of work area in the memory to be used by the job. In addition, the memory management unit 11b adjusts the amount of the work area to be secured to the amount necessary for the next process of the job when the work area is already secured for the processing with the job, A work area release request is accepted, and a specified amount of work area is released.

以上、電子機器10の構成について説明した。   The configuration of the electronic device 10 has been described above.

[典型的な技術によるメモリー使用について]
次に、典型的な技術によって、各ジョブがメモリーを使用する場合について説明する。図3は、典型的な技術によって、各ジョブがメモリーを使用する状況を示す図である。
[About memory usage by typical technology]
Next, a case where each job uses a memory according to a typical technique will be described. FIG. 3 is a diagram illustrating a situation in which each job uses a memory according to a typical technique.

典型的な技術では、先に実行が開始されたジョブ1が、入力処理に用いる作業領域13aと編集処理に用いる作業領域13bを予めそれぞれ確保している。   In a typical technique, the job 1 that has been executed first secures a work area 13a used for input processing and a work area 13b used for editing processing in advance.

そのため、ジョブ2が使用できる作業領域13cは、RAM13の全体から、入力処理用作業領域13aと編集処理用作業領域13bを引いた残りとなり、かなり少なくなってしまう。   Therefore, the work area 13c that can be used by the job 2 is the remainder obtained by subtracting the input process work area 13a and the edit process work area 13b from the entire RAM 13, and is considerably reduced.

ジョブ2で使用できる作業領域が少な過ぎる場合、ジョブ2をジョブ1と同時並行して行うことが出来なくなることもある。   If the work area that can be used by job 2 is too small, job 2 may not be performed concurrently with job 1 in some cases.

以上、典型的な技術によって、各ジョブがメモリーを使用する場合について説明した。   The case where each job uses a memory has been described above using typical techniques.

[典型的な技術によるメモリー管理の流れ]
次に、典型的な技術によって行われるメモリー管理の流れについて説明する。図4は、典型的な技術によって行われるメモリー管理の流れについて説明するためのフローチャートである。
[Flow of memory management by typical technology]
Next, the flow of memory management performed by a typical technique will be described. FIG. 4 is a flowchart for explaining the flow of memory management performed by a typical technique.

まず、ジョブ管理部11aがメモリー管理部11bに対して、ジョブ1の入力処理および編集処理で必要な作業領域を要求し、メモリー管理部11bが、RAM13上にジョブ1の全ての処理で必要な作業領域を確保する(ステップS1)。   First, the job management unit 11a requests the memory management unit 11b for a work area required for job 1 input processing and editing processing, and the memory management unit 11b is necessary for all processing of job 1 on the RAM 13. A work area is secured (step S1).

次に、ジョブ管理部11aは、ジョブ1に、入力処理を実行させる(ステップS2)。   Next, the job management unit 11a causes the job 1 to execute input processing (step S2).

次に、ジョブ管理部11aは、ジョブ1の入力処理が完了したか否かを判断する(ステップS3)。   Next, the job management unit 11a determines whether or not the input process for the job 1 has been completed (step S3).

ジョブ1の入力処理が完了していない場合(ステップS3のN)、ジョブ管理部11aは、ステップS2に戻り、ジョブ1に入力処理を継続させる。   If the input process for job 1 has not been completed (N in step S3), the job management unit 11a returns to step S2 and causes job 1 to continue the input process.

ジョブ1の入力処理が完了している場合(ステップS3のY)、ジョブ管理部11aは、ジョブ1の次の処理である編集処理をジョブ1に実行させる(ステップS4)。   When the input process for job 1 has been completed (Y in step S3), the job management unit 11a causes job 1 to execute an editing process that is the next process for job 1 (step S4).

次に、ジョブ管理部11aは、ジョブ1の編集処理が完了したか否かを判断する(ステップS5)。   Next, the job management unit 11a determines whether or not the editing process for the job 1 is completed (step S5).

ジョブ1の編集処理が完了していない場合(ステップS5のN)、ジョブ管理部11aは、ステップS4に戻り、ジョブ1に編集処理を継続させる。   If the editing process for job 1 has not been completed (N in step S5), the job management unit 11a returns to step S4 and causes job 1 to continue the editing process.

ジョブ1の編集処理が完了している場合(ステップS5のY)、ジョブ管理部11aは、メモリー管理部11bに対し、ジョブ1用に確保していた作業領域を解放するように要求し、メモリー管理部11bは、ジョブ1用に確保していた作業領域を解放する(ステップS6)。   If the editing process for job 1 has been completed (Y in step S5), the job management unit 11a requests the memory management unit 11b to release the work area reserved for job 1, and the memory The management unit 11b releases the work area reserved for job 1 (step S6).

以上、典型的な技術によって行われるメモリー管理の流れについて説明した。   The flow of memory management performed by a typical technique has been described above.

なお、上記の説明では、典型的な技術を用いた場合に、ジョブ管理部11aおよびメモリー管理部11bがどのような動作をするかを説明したものであり、本実施形態にかかる電子機器10のジョブ管理部11aおよびメモリー管理部11bの本来の動作を説明したものではない。ジョブ管理部11aおよびメモリー管理部11bの本来の動作については後述する。   In the above description, the operations of the job management unit 11a and the memory management unit 11b are described when a typical technique is used, and the electronic device 10 according to the present embodiment is described. The original operations of the job management unit 11a and the memory management unit 11b are not described. The original operations of the job management unit 11a and the memory management unit 11b will be described later.

[本発明の技術によるメモリー使用について]
次に、本発明の技術によって、各ジョブがメモリーを使用する場合について説明する。図5は、本発明の技術によって、各ジョブがメモリーを使用する状況を示す図である。
[Use of memory by the technology of the present invention]
Next, a case where each job uses a memory according to the technique of the present invention will be described. FIG. 5 is a diagram illustrating a situation in which each job uses a memory according to the technique of the present invention.

本発明の技術では、上述した典型的な技術と異なり、ジョブ1の処理の進行に従って、RAM13上に確保される作業領域の量が変化する。   In the technique of the present invention, unlike the typical technique described above, the amount of work area secured on the RAM 13 changes as the processing of job 1 progresses.

最初、メモリー管理部11bは、ジョブ1が入力処理を行う場合には、図5の左側に示すように、RAM13上には、ジョブ1で確保する作業領域として、入力処理で用いられる作業領域13aだけを確保する。   Initially, when job 1 performs input processing, the memory management unit 11b has a work area 13a used in input processing as a work area reserved for job 1 on the RAM 13, as shown on the left side of FIG. Only to ensure.

そのため、ジョブ2で使うことが出来る残りの作業領域13dは、典型的な技術を用いた場合の残り作業領域13cよりも多くなり、ジョブ2が同時並行して実行されやすくなる。   Therefore, the remaining work area 13d that can be used in job 2 is larger than the remaining work area 13c in the case of using a typical technique, and job 2 is likely to be executed in parallel.

次に、ジョブ1が編集処理を行う場合に、メモリー管理部11bは、図5の右側に示すように、RAM13上には、ジョブ1で確保する作業領域として、編集処理で用いられる作業領域13bだけを確保する。   Next, when job 1 performs an editing process, the memory management unit 11b stores a work area 13b used in the editing process on the RAM 13 as a work area reserved for the job 1, as shown on the right side of FIG. Only to ensure.

具体的には、メモリー管理部11bは、作業領域13aを一旦、解放して作業領域13bを確保する。または、メモリー管理部11bは、作業領域13aのうち、ジョブ1の編集処理に必要な領域以外の領域を解放することにより、作業領域13bを確保する。   Specifically, the memory management unit 11b temporarily releases the work area 13a and secures the work area 13b. Alternatively, the memory management unit 11b secures the work area 13b by releasing an area other than the area necessary for the editing process of the job 1 in the work area 13a.

例えば、画像形成装置では、紙原稿を読み取る入力処理では、ユーザーがどのようなサイズの用紙を読み込ませるかが事前に分からないため、最大サイズの用紙に合わせた入力用作業領域を確保する必要がある。しかし、読み込んだデータを印刷する編集処理では、実際の用紙サイズに合わせた量だけ作業領域を確保すればよいので、確保する作業領域の量が入力処理に必要な量よりも削減されることが多い。   For example, in an image forming apparatus, in an input process for reading a paper document, the user does not know in advance what size paper is to be read, so it is necessary to secure an input work area that matches the maximum size paper. is there. However, in the editing process for printing the read data, it is sufficient to secure the work area by an amount corresponding to the actual paper size, so the amount of work area to be secured may be reduced from the amount necessary for the input process. Many.

そのため、ジョブ2で使うことが出来る残りの作業領域13eは、典型的な技術を用いた場合の残り作業領域13cまたは本発明の技術を用いて入力処理を行っている場合の残り作業領域13dよりも多くなり、ジョブ2が同時並行して実行されやすくなる。   Therefore, the remaining work area 13e that can be used in job 2 is from the remaining work area 13c when a typical technique is used or the remaining work area 13d when an input process is performed using the technique of the present invention. And the job 2 is likely to be executed simultaneously in parallel.

以上、本発明の技術によって、各ジョブがメモリーを使用する場合について説明した。   The case where each job uses a memory according to the technology of the present invention has been described above.

[本発明の技術によるメモリー管理の流れ]
次に、本発明の技術によって行われるメモリー管理の流れについて説明する。図6は、本発明の技術によって行われるメモリー管理の流れについて説明するためのフローチャートである。
[Flow of memory management by the technology of the present invention]
Next, the flow of memory management performed by the technique of the present invention will be described. FIG. 6 is a flowchart for explaining the flow of memory management performed by the technique of the present invention.

まず、ジョブ管理部11aがメモリー管理部11bに対して、ジョブ1の入力処理で必要な作業領域のみを要求し、メモリー管理部11bが、RAM13上にジョブ1の入力処理で必要な作業領域を確保する(ステップS10)。   First, the job management unit 11a requests only the work area necessary for the input process of job 1 from the memory management part 11b, and the memory management part 11b requests the work area necessary for the input process of job 1 on the RAM 13. Secure (step S10).

次に、ジョブ管理部11aは、ジョブ1に、入力処理を実行させる(ステップS11)。   Next, the job management unit 11a causes the job 1 to perform input processing (step S11).

次に、ジョブ管理部11aは、ジョブ1の入力処理が完了したか否かを判断する(ステップS12)。   Next, the job management unit 11a determines whether or not the input process for the job 1 is completed (step S12).

ジョブ1の入力処理が完了していない場合(ステップS12のN)、ジョブ管理部11aは、ステップS11に戻り、ジョブ1に入力処理を継続させる。   If the input process for job 1 has not been completed (N in step S12), the job management unit 11a returns to step S11 and causes job 1 to continue the input process.

ジョブ1の入力処理が完了している場合(ステップS12のY)、ジョブ管理部11aがメモリー管理部11bに対して、ジョブ1の編集処理で必要な作業領域を要求し、メモリー管理部11bが、RAM13上に確保されているジョブ1用の作業領域を、編集処理で必要な作業領域の量になるように調整する(ステップS13)。   If the input process for job 1 has been completed (Y in step S12), the job management unit 11a requests the memory management unit 11b for a work area necessary for the editing process for job 1, and the memory management unit 11b Then, the work area for job 1 secured on the RAM 13 is adjusted to the amount of work area required for the editing process (step S13).

次に、ジョブ管理部11aは、ジョブ1の次の処理である編集処理をジョブ1に実行させる(ステップS14)。   Next, the job management unit 11a causes the job 1 to execute editing processing that is the next processing of the job 1 (step S14).

次に、ジョブ管理部11aは、ジョブ1の編集処理が完了したか否かを判断する(ステップS15)。   Next, the job management unit 11a determines whether or not the editing process for the job 1 is completed (step S15).

ジョブ1の編集処理が完了していない場合(ステップS15のN)、ジョブ管理部11aは、ステップS14に戻り、ジョブ1に編集処理を継続させる。   If the editing process for job 1 has not been completed (N in step S15), the job management unit 11a returns to step S14 and causes job 1 to continue the editing process.

ジョブ1の編集処理が完了している場合(ステップS15のY)、ジョブ管理部11aは、メモリー管理部11bに対し、ジョブ1用に確保していた作業領域を解放するように要求し、メモリー管理部11bは、ジョブ1用に確保していた作業領域を解放する(ステップS16)。   If the editing process for job 1 has been completed (Y in step S15), the job management unit 11a requests the memory management unit 11b to release the work area reserved for job 1, and the memory The management unit 11b releases the work area reserved for job 1 (step S16).

以上、本発明の技術によって行われるメモリー管理の流れについて説明した。   The flow of memory management performed by the technique of the present invention has been described above.

[補足事項]
なお、上述した典型的な技術とは別の典型的な技術として、最初、ジョブ1では入力処理用のメモリー13aのみを確保し、次の編集処理では、入力処理用に確保された作業領域13aをそのまま使用する方法もある。
[Additional notes]
Note that as a typical technique different from the typical technique described above, first, only the input processing memory 13a is secured in the job 1, and in the next editing process, the work area 13a secured for input processing. There is also a method of using as it is.

その場合、上述した典型的な技術によるメモリー管理方法よりもジョブ2が実行できる可能性は高まるが、本発明によるメモリー管理方法よりはジョブ2が実行できる可能性は低いものとなる。   In that case, although the possibility that the job 2 can be executed is higher than the memory management method according to the typical technique described above, the possibility that the job 2 can be executed is lower than the memory management method according to the present invention.

その他、本発明は、上述の実施形態にのみ限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。   In addition, this invention is not limited only to the above-mentioned embodiment, Of course, various changes can be added within the range which does not deviate from the summary of this invention.

10 … 電子機器
11 … CPU
11a… ジョブ管理部
11b… メモリー管理部
12 … ROM
13 … RAM
14 … 操作入力部
15 … 通信部
16 … 表示部
17 … 記憶部
18 … バス
10 ... Electronic equipment 11 ... CPU
11a ... Job management unit 11b ... Memory management unit 12 ... ROM
13 ... RAM
DESCRIPTION OF SYMBOLS 14 ... Operation input part 15 ... Communication part 16 ... Display part 17 ... Memory | storage part 18 ... Bus

Claims (2)

複数の処理からなるジョブが実行される制御部と、
前記処理を実行するための作業領域が確保されるメモリーと、
前記メモリー上に、前記作業領域を確保するメモリー管理部と、
前記処理ごとの実行に必要な前記作業領域の量を把握し、
実行する前記処理に必要な前記作業領域を前記メモリー管理部に確保させ、
1つの前記処理の完了後、次の前記処理の実行時に、完了した前記処理において既に確保されている前記作業領域の量を、前記次の処理に必要な量に調整するように前記メモリー管理部に指示するジョブ管理部と
を備えた
電子機器。
A control unit that executes a job consisting of a plurality of processes;
A memory in which a work area for executing the processing is secured;
A memory management unit for securing the work area on the memory;
Grasp the amount of the work area required for execution of each process,
The memory management unit secures the work area necessary for the processing to be executed,
After the completion of one of the processes, the memory management unit adjusts the amount of the work area already secured in the completed process to the amount necessary for the next process when the next process is executed. An electronic device with a job management section that directs
複数の処理からなるジョブが制御部上で実行されるとき、
前記処理を実行するための作業領域をメモリー上に確保し、
前記処理ごとの実行に必要な前記作業領域の量を把握し、
1つの前記処理の完了後、次の前記処理の実行時に、完了した前記処理において既に確保されている前記作業領域の量を、前記次の処理に必要な量に調整する
手順をコンピューターに実行させるメモリー管理プログラム。
When a job consisting of multiple processes is executed on the control unit,
A work area for executing the processing is secured on a memory,
Grasp the amount of the work area required for execution of each process,
After the completion of one process, when the next process is executed, the computer is caused to execute a procedure for adjusting the amount of the work area already secured in the completed process to an amount necessary for the next process. Memory management program.
JP2015070632A 2015-03-31 2015-03-31 Electronic apparatus and memory management program Pending JP2016192011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015070632A JP2016192011A (en) 2015-03-31 2015-03-31 Electronic apparatus and memory management program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015070632A JP2016192011A (en) 2015-03-31 2015-03-31 Electronic apparatus and memory management program

Publications (1)

Publication Number Publication Date
JP2016192011A true JP2016192011A (en) 2016-11-10

Family

ID=57246844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015070632A Pending JP2016192011A (en) 2015-03-31 2015-03-31 Electronic apparatus and memory management program

Country Status (1)

Country Link
JP (1) JP2016192011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10750045B2 (en) * 2018-08-21 2020-08-18 Kyocera Document Solutions Inc. Electronic device and method for controlling memory thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10750045B2 (en) * 2018-08-21 2020-08-18 Kyocera Document Solutions Inc. Electronic device and method for controlling memory thereof

Similar Documents

Publication Publication Date Title
CN106155768B (en) Method and device for running application in split screen mode
JP2009241584A (en) Method of canceling printing job submitted to printer
JP2006120123A5 (en)
JP2017046084A (en) Image processing system, control task assignment method and assignment program
JP2015155174A (en) Image formation device, control method of the same and program
JP2016192011A (en) Electronic apparatus and memory management program
JP5132339B2 (en) Information processing apparatus, control method therefor, and computer program
JP5700966B2 (en) PRINT CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP2012179862A (en) Printing apparatus and printing method
JP6881935B2 (en) Communication equipment, control methods and programs for communication equipment
JP2011165080A (en) Electronic apparatus
JP5035487B1 (en) Printing control apparatus, printing system, and program
JP6489075B2 (en) Image forming apparatus, program, and information processing method
JP2013205899A (en) Printing control device, printing system and program
US9542308B2 (en) Electronic device that completes execution of task immediately, method for managing memory, and recording medium
JP2017049722A (en) Job management system, job management method, and program
JP2008195041A (en) Image forming apparatus, information processing method, and information processing program
JP2016218495A (en) Information processing apparatus, output system, and program
US20150269460A1 (en) Printing apparatus, information processing apparatus and method for controlling the information processing apparatus, and storage medium
JP7086772B2 (en) Image forming device, control method of image forming device, and program
JP2015219852A (en) Information processing apparatus, information processing apparatus control method, and program
JP2016107483A (en) Image forming apparatus, control method for the same, and program
US9521273B2 (en) Information processing device and recording medium that ensures reduced count of times of band processing
JP6337532B2 (en) Information processing system and information processing method
JP2009255356A (en) Image forming device and image forming system