JPS60191336A - Process starting system - Google Patents

Process starting system

Info

Publication number
JPS60191336A
JPS60191336A JP59046938A JP4693884A JPS60191336A JP S60191336 A JPS60191336 A JP S60191336A JP 59046938 A JP59046938 A JP 59046938A JP 4693884 A JP4693884 A JP 4693884A JP S60191336 A JPS60191336 A JP S60191336A
Authority
JP
Japan
Prior art keywords
file
packet
data
name
started
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
JP59046938A
Other languages
Japanese (ja)
Inventor
Takashi Kimoto
木本 隆
Yoshihiro Nakamura
芳弘 中村
Keiji Sato
恵司 佐藤
Sadao Fukatsu
深津 貞雄
Nobuo Watabe
信雄 渡部
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 JP59046938A priority Critical patent/JPS60191336A/en
Publication of JPS60191336A publication Critical patent/JPS60191336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

PURPOSE:To prevent the mixture of data and the destruction of data contents by starting a new process in case the key data are different or processes of the same name are not started. CONSTITUTION:A process 24 is started by an inter-process communication process 22 and a file 26 within an auxiliary memory 25 is opened. Under such conditions, a process starting packet is sent to a reception control part 24 from another personal computer. Then a control part 21 discriminates the type of the packet and starts an inter-process communication process 28 to send it to the packet owing to the process control. Then the process 28 refers to a table 27 and sends data to a process where the process name is coincident with the key data. Otherwise a designated process is started if no process of the same name is started or no file of the same name is opened.

Description

【発明の詳細な説明】 1)0発明の技術分野 本発明は比較的小規模の計算機システム(例えばパソコ
ン)におけるプロセスの起動方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION 1) Technical Field of the Invention The present invention relates to a process startup method in a relatively small-scale computer system (for example, a personal computer).

2)、従来技術と問題点 従来、計算機システム内でのプロセスの起動はプロセス
名を指定することによって行なわれている。そして、例
えばプロセスAとプロセスBと言う異なる2個のプロセ
スがそれぞれ殆ど同時刻にプロセスCを起動したような
ときにはプロセスCは2個生成される。この場合プロセ
スCが例えばファイルにアクセスするプロセスであって
、該計算機システムのファイル管理部などで、複数のプ
ロセスから同一のファイルにアクセスすることに対応す
る制御がなされていないときには、ファイルアクセスの
競合による不都合を生ずることがあった。
2), Prior Art and Problems Conventionally, processes within a computer system are activated by specifying a process name. For example, when two different processes, process A and process B, start process C at almost the same time, two processes C are generated. In this case, if process C is, for example, a process that accesses a file, and the file management unit of the computer system does not have control to accommodate multiple processes accessing the same file, file access conflicts may occur. This may cause inconvenience.

すなわち、例えば上記プロセスAとプロセスBがほぼ同
時にプロセスCを通じてファイルの同一領域に書き込み
を行なったようなとき、プロセスAの書いたデータとプ
ロセスBの書いたデータが混ざってしまうという問題点
があった。第1図および第2図は上記説明を補足するた
めに掲げたものであって、第1図は複数のプロセスが同
一ファイルにアクセスする様子を示した概念図であり、
・ 2 1はプロセスA、2はプロセスB、3.3 ”はプロセ
スC14はファイルを表わしている。
That is, for example, when process A and process B write to the same area of a file through process C at almost the same time, there is a problem that the data written by process A and the data written by process B are mixed. Ta. Figures 1 and 2 are provided to supplement the above explanation, and Figure 1 is a conceptual diagram showing how multiple processes access the same file.
- 2 1 represents process A, 2 represents process B, and 3.3'' represents process C 14 represents a file.

第2図はファイル上で異なるプロセスの書き込んだデー
タがまざりあった状態を示す図であって、5は同一領域
を示しており、AはプロセスAの書き込んだデータ、B
はプロセスBの書き込んだデータを表わしている。
FIG. 2 is a diagram showing a state in which data written by different processes are mixed on a file, 5 indicates the same area, A is data written by process A, B is
represents data written by process B.

一方、計算機システムのファイル管理部などで、複数の
プロセスから同一ファイルにアクセスすることに対応す
る制御が成されているときには、上記のようなファイル
アクセスの競合による不都合は生じないが、必然的に、
ファイル管理部による定型的なファイル制御しか行なわ
れないので、利用者が微細で多様なファイル処理を望ん
でも、その実行が不可能であったり、プロセス間の通信
などによる複雑で煩雑な制御を行なわなければならない
という欠点があった。
On the other hand, when the file management section of a computer system has controls that allow multiple processes to access the same file, the above-mentioned problems due to file access conflicts do not occur, but inevitably ,
Since only routine file control is performed by the file management section, even if the user wishes to perform detailed and diverse file processing, it may be impossible to do so, or complicated and cumbersome control due to communication between processes may not be possible. There was a drawback that it had to be done.

例えば、ファイル管理部の制御が常に先着順に処理を行
なうようになっているとき、それぞれ独立して走行する
プロセスAとプロセスBの中のいずれか一方の要求を優
先して処理させる必要のあるような場合にはプロセスA
とプロセス8間で通信を行なって、競合を調整するため
の面倒な制御を行なわなければならない。
For example, when the control of the file management unit is such that processing is always performed on a first-come, first-served basis, it may be necessary to give priority to the requests of either process A or process B, which run independently. If so, process A
Communication between the process 8 and process 8 must be performed to perform cumbersome control to reconcile conflicts.

3)0発明の目的 本発明は上記従来の欠点に鑑み、それぞれ独立したプロ
セスが競合することなく同一の資源にアクセスすること
が可能であって、簡潔な手続きで容易に資源への多様な
アクセスを可能ならしめる手段を提供することを目的と
している。
3) Purpose of the Invention In view of the above-mentioned drawbacks of the conventional art, the present invention makes it possible for independent processes to access the same resource without competing with each other, and allows for easy diverse access to resources through a simple procedure. The purpose is to provide a means to make this possible.

4)0発明の構成 そして、この目的は本発明によれば特許請求の範囲に記
載のとおり、計算機システムにおいて、プロセスを起動
する際プロセス名と共にキーデータを伝達する手段と、
すでに起動されているプロセスのプロセス名およびキー
データと新たに起動すべきプロセスのプロセス名および
キーデータとを比較する手段とを設け、同じプロセス名
のプロセスがすでに起動されていて、そのキーデータも
同一であるときは、該プロセスに処理を要求するメツセ
ージを送り、キーデータが異なるかまたは起動中の同名
のプロセスが存在しないときには新だに該当するプロセ
スを起動することを特徴とするプロセス起動方式により
達成される。
4) Structure of the Invention According to the present invention, the object is to provide means for transmitting key data together with a process name when starting a process in a computer system, as described in the claims.
A means for comparing the process name and key data of a process that has already been started with the process name and key data of a process to be newly started is provided, and if a process with the same process name is already started and its key data is also If they are the same, a message requesting processing is sent to the process, and if the key data is different or there is no running process with the same name, a new process is started. This is achieved by

5)0発明の実施例 第3図は本発明を実施する装置の1例を示す図であって
、6−1〜6−4はそれぞれパソコンを、7−1〜7−
4はそれぞれ回線制御部を表わしており、8はファイル
、9はパケット交換部を表わしでいる。
5) 0 Embodiment of the Invention FIG. 3 is a diagram showing an example of an apparatus for carrying out the present invention, in which 6-1 to 6-4 represent personal computers, and 7-1 to 7-
4 represents a line control section, 8 a file, and 9 a packet exchange section.

第4図はパケットの形式の例を示す図で10.10′〜
15はそれぞれフレームを表わしでしする。
Figure 4 shows an example of the packet format.
15 each represents a frame.

フレーム10.10′にはフラグシーケンスがあっで、
パケットの始まりと終わりを示す区切り符号としての役
割を果たしでおり、フレーム11にはパケットを送るパ
ソコンのアドレスとして送り先パソコンID、7レーム
12にはパケットを送り出したパソコンのアドレスとし
て送り元ノ(ソコンID、フレーム13には通信制御情
報、フレーム14には、このパケットの種類、例えばデ
ータであるかなどの情報、フレーム15には相手側のプ
ロセスに送るメツセージが収容される。プロセス名やキ
ーデータは該メツセージに含まれる。
At frame 10.10' there is a flag sequence,
It plays the role of a delimiter indicating the beginning and end of a packet, and frame 11 contains the destination computer ID as the address of the computer sending the packet, and frame 12 contains the source computer ID as the address of the computer that sent the packet. ID, frame 13 contains communication control information, frame 14 contains information about the type of this packet, such as whether it is data, and frame 15 contains a message to be sent to the other process. Process name and key data. is included in the message.

第3図に於いて、各パソコン6−1〜6−4間の通信は
第4図に示すような形式のパケットを送受信することに
より行なわれるものであって、パケット交換部9が各パ
ソコンから送られたパケットを送り先パソコンの通信回
線へ送出するなどのスイッチングを行なっている。回線
制御部7−1〜7−4はそれぞれパソコンに内蔵されて
いれ通信回線へのパケットの送出および通信回線からの
パケットの受信を行なっている。
In FIG. 3, communication between the personal computers 6-1 to 6-4 is performed by sending and receiving packets in the format shown in FIG. It performs switching such as sending the sent packet to the communication line of the destination computer. Each of the line control units 7-1 to 7-4 is built in the personal computer and sends packets to a communication line and receives packets from the communication line.

このような構成のシステムにおいて、パソコン6−1の
擁するファイル8に対し、パソコン6−2〜6−4が非
同期的にアクセスする条件ではファイル8のないようが
破壊される危険性が高いが、本発明による方式を適用す
ればファイル名をキーデータとしてパソコン6−1のプ
ロセスを起動することにより同一ファイルへのアクセス
の競合が回避される。以下その制御を図面にもとずいて
説・ 6 明する。
In a system with such a configuration, if the personal computers 6-2 to 6-4 access the file 8 owned by the personal computer 6-1 asynchronously, there is a high risk that the file 8 will be destroyed. If the method according to the present invention is applied, conflicts in access to the same file can be avoided by starting processes on the personal computer 6-1 using the file name as key data. The control will be explained below based on the drawings.

第5図は本発明の1実施例の機能ブロック図であって、
16は送信回線、17は受信回線、18は回線制御部、
19は通信制御部、2oは送信制御部、21は受信制御
部、22はプロセス間通信フロセス(AI)、23はプ
ロセス間通信プロセス(A2)、24はプロセス(P)
、25は補助記憶、26はファイル(BL27はオペレ
ーティングシステム(OS)のテーブルを表わしている
FIG. 5 is a functional block diagram of one embodiment of the present invention,
16 is a transmission line, 17 is a reception line, 18 is a line control unit,
19 is a communication control unit, 2o is a transmission control unit, 21 is a reception control unit, 22 is an interprocess communication process (AI), 23 is an interprocess communication process (A2), and 24 is a process (P)
, 25 is auxiliary storage, 26 is a file (BL 27 is an operating system (OS) table).

第5図において、回線制御部18はデータの直並列の変
換を行なうもので、受信した直列データを並列データに
、また並列データを直列データに変換して送信回線16
に送出したりする。通信制御部19は送信制御部20、
または受信制御部21と回線制御部18との開のパケッ
トの受け渡しなどの制御を行なっている。送信制御部2
oはプロセス間通信プロセス22.23から送られたパ
ケットを通信制御部19へ転送している。(ここではプ
ロセス間通信プロセスを2個図示しであるが実際にはも
っと多数であることが多い)受信制御部21は通信制御
部19がら送られたパケットの種類を識別して、該パケ
ットがプロセス起動であればプロセスを起動してそれに
パケットを送り、一方、該パケットがデータであれば送
り先のプロセス間通信プロセスへパケットを送る。プロ
セス間通信プロセス22.23は受信制御部21によっ
て生成され、プロセスの起動や、プロセスと送信制御部
20あるいは受信制御部21との開の通信の制御、及び
パケットの組み立てなどを行なっている。第5図におい
てプロセス(P)24はプロセス間通信プロセス22に
よって起動されたもので補助記憶25内のファイル(B
)26をオープンしているものとする。
In FIG. 5, the line control unit 18 performs serial/parallel conversion of data, and converts received serial data into parallel data and parallel data into serial data, and converts the received serial data into parallel data and converts the parallel data into serial data.
or send it to. The communication control unit 19 includes a transmission control unit 20,
It also controls the exchange of open packets between the reception control section 21 and the line control section 18. Transmission control section 2
o transfers the packets sent from the interprocess communication processes 22 and 23 to the communication control unit 19. (Two inter-process communication processes are illustrated here, but in reality there are often many more.) The reception control unit 21 identifies the type of packet sent from the communication control unit 19, and identifies whether the packet is If the process is activated, the process is activated and a packet is sent to it, while if the packet is data, the packet is sent to the destination interprocess communication process. The inter-process communication processes 22 and 23 are generated by the reception control unit 21 and perform processes startup, control of communication between the process and the transmission control unit 20 or the reception control unit 21, and assembly of packets. In FIG. 5, a process (P) 24 is started by the interprocess communication process 22 and is a file (B) in the auxiliary memory 25.
)26 is open.

このような状態のとき更に他のパソコンからプロセス起
動のパケットが送られてくると受信回線17を通って直
列データとして送られてきた該パケットは回線制御部1
8で並列データに変換されて通信制御部19を経由して
受信制御部21に送り込まれる。受信制御部21では該
パケットの種類を識別するが、それがプロセス起動なの
で図中・ 7 に点線で示す28のプロセス間通信プロセス (A3)
を起動して、これにパケットを送る。(パケット内には
プロセス名とキーデータが含まれている)プロセス間通
信プロセス(A3)28はO8のテーブル27(プロセ
ステーブルやファイルテーブルがある)を参照して既に
起動されているプロセス名とキーデータ(この場合はオ
ープンしているファイル名)について送られてきたパケ
ット内のそれと一致するものがないかを調べる。そして
、プロセス名、キーデータとも一致するものがあれば該
プロセスへメツセージを送る。(第2図の場合プロセス
(P)24及びファイル(B)26が該当する)もし、
同一名のプロセスが起動されていないか、または、同一
名のプロセスが起動されていても、同一名のファイルが
オープンされていなければ指定されたプロセスを起動す
る。
In this state, when a process activation packet is sent from another computer, the packet sent as serial data through the receiving line 17 is sent to the line control unit 1.
8, the data is converted into parallel data and sent to the reception control section 21 via the communication control section 19. The reception control unit 21 identifies the type of the packet, but since it is a process activation, 28 interprocess communication processes (A3) shown by dotted lines at 7 in the figure
Start up and send a packet to it. (The packet contains the process name and key data.) The interprocess communication process (A3) 28 refers to the O8 table 27 (which includes a process table and a file table) and identifies the process name and key data that have already been activated. The key data (in this case, the name of the open file) is checked to see if it matches the key data in the packet sent. If there is a match between the process name and key data, a message is sent to the process. (In the case of Figure 2, process (P) 24 and file (B) 26 correspond)
Starts the specified process if no process with the same name is running, or if a process with the same name is running but no file with the same name is open.

6)0発明の効果 以上詳細に説明したように本発明のプロセス起動方式に
よればファイルなどの資源の同一領域へアクセスするよ
うな場合、単一のプロセスで行な・ 9 ・ ・ 8 ・ うので複数の独立したプロセスが非同期的に処理をおこ
なう場合に起こりがちなデータが混合したり、内容を破
壊したりすることを防止出来ると共に、また、前記単一
のプロセスの制御によって微細なアクセス制御を行なう
ことも可能であるから効果は大である。
6) Effects of the Invention As explained in detail above, according to the process startup method of the present invention, when accessing the same area of resources such as files, a single process can do it. Therefore, it is possible to prevent data from being mixed or content to be destroyed, which tends to occur when multiple independent processes perform processing asynchronously, and also allows for fine-grained access control by controlling the single process. It is also possible to do this, so the effect is great.

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

第1図は複数のプロセスが同一ファイルにアクセスする
様子を示した概念図、第2図はファイル上で異なるプロ
セスの書き込んだデータがまざりあった状態を示す図、
第3図は本発明を実施する装置の一例を示す図、第4図
はパケットの形式の例を示す図、第5図は本発明のト実
施例の機能ブロック図である。 1・・プロセスA、2・・プロセスB、3,3′・・プ
ロセスC,4,8・・7アイル、5・・同一領域、6−
1〜6−4・・パソコン、7−1〜7−4・・回線制御
部、9・・パケット交換部、10.10’〜15・・フ
レーム、16・・送信回線、17・・受信回線、18・
・回線制御部、・IO 19・・通信制御部、20・・送信制御部、21・・受
信制御部、22・・プロセス間通信プロセス(AI)、
23・・プロセス間通信プロセス(A2)、24・・プ
ロセス(P)、25・・補助記憶、26・・ファイル(
B)、2.7・・オペレーティングシステム(OS)の
テーブル //
Figure 1 is a conceptual diagram showing how multiple processes access the same file, Figure 2 is a diagram showing how data written by different processes are mixed on the file,
FIG. 3 is a diagram showing an example of an apparatus implementing the present invention, FIG. 4 is a diagram showing an example of a packet format, and FIG. 5 is a functional block diagram of an embodiment of the present invention. 1... Process A, 2... Process B, 3, 3'... Process C, 4, 8... 7 isles, 5... Same area, 6-
1~6-4...PC, 7-1~7-4...Line control unit, 9...Packet switching unit, 10.10'~15...Frame, 16...Transmission line, 17...Reception line , 18・
- Line control unit, - IO 19 - Communication control unit, 20 - Transmission control unit, 21 - Reception control unit, 22 - Inter-process communication process (AI),
23... Inter-process communication process (A2), 24... Process (P), 25... Auxiliary storage, 26... File (
B), 2.7...Operating system (OS) table//

Claims (1)

【特許請求の範囲】[Claims] 計算機システムにおいて、プロセスを起動する際プロセ
ス名と共にキーデータを伝達する手段と、すでに起動さ
れているプロセスのプロセス名およヒキーデータと新た
に起動すべきプロセスのプロセス名およびキーデータと
を比較する手段とを設け、同じプロセス名のプロセスが
すでに起動されでいて、そのキーデータも同一であると
きは、該プロセスに処理を要求するメツセージを送り、
キーデータが異なるかまたは起動中の同名のプロセスが
存在しないと外には新たに該当するプロセスを起動する
ことを特徴とするプロセス起動方式。
In a computer system, a means of transmitting key data together with a process name when starting a process, and comparing the process name and key data of an already started process with the process name and key data of a newly started process. and when a process with the same process name has already been started and its key data is also the same, sends a message requesting processing to the process,
A process startup method characterized by starting a new process if the key data is different or if there is no running process with the same name.
JP59046938A 1984-03-12 1984-03-12 Process starting system Pending JPS60191336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59046938A JPS60191336A (en) 1984-03-12 1984-03-12 Process starting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59046938A JPS60191336A (en) 1984-03-12 1984-03-12 Process starting system

Publications (1)

Publication Number Publication Date
JPS60191336A true JPS60191336A (en) 1985-09-28

Family

ID=12761256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59046938A Pending JPS60191336A (en) 1984-03-12 1984-03-12 Process starting system

Country Status (1)

Country Link
JP (1) JPS60191336A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63259731A (en) * 1987-04-17 1988-10-26 Nec Corp Resource control system
WO2003098438A1 (en) * 2002-05-20 2003-11-27 Ntt Docomo, Inc. Data usage management electronic apparatus, method, program, and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63259731A (en) * 1987-04-17 1988-10-26 Nec Corp Resource control system
WO2003098438A1 (en) * 2002-05-20 2003-11-27 Ntt Docomo, Inc. Data usage management electronic apparatus, method, program, and storage medium

Similar Documents

Publication Publication Date Title
EP0371229B1 (en) Computer system having host computer
US5689638A (en) Method for providing access to independent network resources by establishing connection using an application programming interface function call without prompting the user for authentication data
US5642515A (en) Network server for local and remote resources
US6101555A (en) Methods and apparatus for communicating between networked peripheral devices
EP0321723B1 (en) Apparatus for a data processing system having a peer relationship among a plurality of central processing units
US5574862A (en) Multiprocessing system with distributed input/output management
US7055153B2 (en) Inter-object messaging
JP4233635B2 (en) Apparatus and method for providing persistence to an application interface
JP2002007182A (en) Shared file control system for external storage device
US20050235005A1 (en) Computer system configuring file system on virtual storage device, virtual storage management apparatus, method and signal-bearing medium thereof
JPH11506241A (en) Security device and security method for data communication system
JPH11149443A (en) Interconnection system between personal computer and computer work station
JPS60191336A (en) Process starting system
US7827194B2 (en) Access to shared disk device on storage area network
JP2003330833A (en) Computer system
JPH01169533A (en) Object steering programming system
JP3499938B2 (en) I / O device sharing system between multiple systems with different protocols
JPH03265945A (en) Data sharing system for operating systems of different types
JP2861791B2 (en) SCSI basic input / output system
JP2002063062A (en) Distributed system for managing/sharing file
JP3373932B2 (en) System construction method
JPH10320259A (en) Additinal type cd sharing system
JP3866533B2 (en) File management system and method, program
CN117435357A (en) Input/output request processing method, device, equipment, medium and vehicle controller
JPS62271166A (en) Processing method for file access of other system