Method for operating multiple processes using message passing and shared memory
First Claim
1. In a computer system comprising a CPU, a window system, and an operating system, said computer system operating in accordance with said operating system and said window system, a method for operating an application program in said computer system, said method comprising the steps of:
- dividing said application program into a first process and a second process;
said first process comprising at least one time critical procedure within said application program, said time critical procedure requiring execution within a limited time in order to execute properly;
said second process comprising no time critical procedures;
executing said first process and second process of said application program in said computer system operating in accordance with said operating system and said window system such that;
said first process bypasses said window system and communicates directly with said operating system such that said window system is unable to suspend said first process;
said second process communicates directly with said window system such that said window system is able to selectively suspend said second process;
said first process communicates directly with said second process through an interprocess communication mechanism;
wherein said first process and said second process operate in conjunction with one another to accomplish said application program such that division of said application program into said first process and said second process is transparent to a user of said computer system.
0 Assignments
0 Petitions
Accused Products
Abstract
In the system of the present invention, a time critical program operating in a window system environment is implemented. The application program containing time critical procedures is divided functionally into two or more processes. The first process contains all of the CPU time slice sensitive or time critical procedures. This process operates independently of the window system interface and communicates directly with the operating system. The second process implements all procedures which require the user input and output through the window system but not including time critical procedures. This process communicates with and operates through the window system interface. The processes exchange data and synchronize execution through the interprocess communication mechanisms such as shared memory such that the two or more processes operate and appear as a single process to the user while insulating the first process from suspension due to window system operations and blocking procedures.
48 Citations
16 Claims
-
1. In a computer system comprising a CPU, a window system, and an operating system, said computer system operating in accordance with said operating system and said window system, a method for operating an application program in said computer system, said method comprising the steps of:
-
dividing said application program into a first process and a second process; said first process comprising at least one time critical procedure within said application program, said time critical procedure requiring execution within a limited time in order to execute properly; said second process comprising no time critical procedures; executing said first process and second process of said application program in said computer system operating in accordance with said operating system and said window system such that; said first process bypasses said window system and communicates directly with said operating system such that said window system is unable to suspend said first process; said second process communicates directly with said window system such that said window system is able to selectively suspend said second process; said first process communicates directly with said second process through an interprocess communication mechanism; wherein said first process and said second process operate in conjunction with one another to accomplish said application program such that division of said application program into said first process and said second process is transparent to a user of said computer system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. In a computer system comprising a CPU, a window system, and an operating system, said computer system operating in accordance with said operating system and said window system, a method for operating an application program in said computer system, said method comprising the steps of:
-
dividing said application program into a first process and a second process; said first process comprising at least one time critical procedure within said application program, said time critical procedure requiring execution within a limited time in order to execute properly; said second process comprising no time critical procedures; initiating the execution of said first process in said computer system operating in accordance with said operating system and said window system, said first process bypassing said window system and communicating directly with said operating system such that said window system is unable to suspend said first process; said first process executing start-up code to configure said application program; said first process setting up a section of shared memory for interprocess communication with second process; said first process placing a command in said shared memory, said command identifying a particular procedure to be executed by said second process; said first process issuing a signal to said second process, said single causing said second process read said command placed in said shared memory; said second process executing said command, said second process communicating directly with said window system such that said window system is able to selectively suspend said second process; wherein said first process and the second process operate in conjunction with one another in master/slave relationship to accomplish said application program. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification