CS 4504 Lecture Notes - Lecture 2: Code Segment, Race Condition, Child Process
Document Summary
When a program is run or executed on a computer it is represented as a process. A process consists of an executing program, its current values, state information, and resources used by the operating system. Life of a process program starts at the execution and is send to the ready queue. When necessary resources are available (such as cpu) the process is dispatched (enters running state). It continues to execute till i/o operation is required (called blocked state). After blocked state is removed process is back to the ready que. When the process finishes its job the process will be terminated. Three types of java programs: applications, applets, and servlets. Application has a main method and it is run independent (stand-alone). Applet does not have a main method and it is run using a browser or the appletviever. Servlet does not have a main method and it is run in the context of a web browser.