Unit- 2 Process and Process Scheduling 2.1 Introduce Process, Program and Process Life Cycle Process Process is something that is currently under execution. So, an active program can be called a Process. Examples: ● Opening a web browser to search something on the internet — the browser becomes a process. ● Launching a music player to enjoy your favorite tunes — the music player is also a process. In computing, a process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity. Modern operating systems support multithreading , meaning a process can have multiple threads running concurrently . A Process has various attributes associated with it. Some of the attributes of a Process are: ● Process Id: Every process will be given a unique id that identifies the process...
Unit-2 Control Statements in c# A control statement in java is a statement that determines whether the other statements will be executed or not. It controls the flow of a program. Control Statements can be divided into three categories, namely ● Decision Making statements ● Iteration (Looping) statements ● Jump statements ⮚ Decision Making statements Decision making statements help you to make decision based on certain conditions. These conditions are specified by a set of decision making statements having boolean expressions which are evaluated to a boolean value true or false. There are following types of decision making statements in C#. 1) Simple if statement: It is the most basic statement among all control flow statements in C#. It evaluates a Boolean expression and enables the program to enter a block of code if the ...