Process scheduling OS

Process scheduling

Scheduling is a fundamental function of OS. When a computer is multiprogrammed, it has multiple processes completing for the CPU at the same time. If only one CPU is available, then a choice has to be made regarding which process to execute next. This decision making process is known as scheduling and the part of […]

Process Management OS

Process Management

Process: A process or task is an instance of a program in execution. The execution of a process must programs in a sequential manner. At any time at most one instruction is executed. The process includes the current activity as represented by the value of the program counter and the content of the processors registers. […]

Parameter Passing Techniques

When writing functions in C, one key concept every programmer must understand is how parameters are passed. This affects whether your function works with a copy of data or directly modifies the original variable. In C, there are two main parameter passing techniques:  1. Pass by Value (Default in C) Pass by value means the […]

Program to print the sum of 1st N natural numbers

What are Natural Numbers? Natural numbers are positive integers starting from 1, 2, 3, and so on. The sum of the first N natural numbers can be calculated using a loop or using the formula: Sum = n(n+1)/2 #include<stdio.h> int main() { int n,i,sum=0; printf(“Enter the limit: “); scanf(“%d”, &n); for(i=1;i<=n;i++) { sum = sum […]

Basic Functions of Operation System

The various functions of operating system are as follows: 1. Process Management: A program does nothing unless their instructions are executed by a CPU.A process is a program in execution. A time shared user program such as a compiler is a process. A word processing program being run by an individual user on a pc […]

Top 10 Cyber Crime Prevention Tips

1. Use Strong Passwords Use different user ID / password combinations for different accounts and avoid writing them down. Make the passwords more complicated by combining letters, numbers, special characters (minimum 10 characters in total) and change them on a regular basis. 2. Secure your computer Activate your firewall Firewalls are the first line of […]

Computer security

Computer security is security applied to computing devices such as computers and smartphones, as well as computer networks such as private and public networks, including the whole Internet. The field covers all the processes and mechanisms by which digital equipment, information and services are protected from unintended or unauthorized access, change or destruction, and are […]

Recovery from Deadlock

When a detection algorithm determines that a deadlock exists, several alternatives exist. One possibility is to inform the operator that a deadlock has occurred, and to let the operator deal with the deadlock manually. The other possibility is to let the system recover from the deadlock automatically. There are two options for breaking a deadlock. […]