Posts

Showing posts from September, 2021

SCHEDULING AND SCHEDULERS

Image
  In this " SCHEDULING AND SCHEDULERS " article, You can learn PROCESS SCHEDULING, PROCESS SCHEDULING QUEUES, TWO-STATE PROCESS MODEL, PROCESS SCHEDULER, LONG TERM SCHEDULER, SHORT TERM SCHEDULER, MEDIUM TERM SCHEDULER, COMPARISON AMONG SCHEDULER, CONTEXT SWITCH, CPU SCHEDULING, SCHEDULING TYPES, CPU SCHEDULER OR SHORT-TERM SCHEDULER, JOB SCHEDULER OR LONG-TERM SCHEDULER, ARRIVAL TIME, BURST TIME, EXIT TIME, RESPONSE TIME, WAITING TIME, TURNAROUND TIME, and THROUGHPUT. PROCESS SCHEDULING The process scheduling is the activity of the process manager that handles the removal of the running process from the CPU and the selection of another process on the basis of a particular strategy. Process scheduling is an essential part of a Multi programming operating systems. Such operating systems allow more than one process to be loaded into the executable memory at a time and the loaded process shares the CPU using time multiplexing. PROCESS SCHEDULING QUEUES The OS

PROCESS SCHEDULING ALGORITHMS

Image
  In this " PROCESS SCHEDULING ALGORITHMS " article, You can learn First-Come, First-Served (FCFS) Scheduling, Shortest-Job-Next (SJN) Scheduling, Priority Scheduling, Shortest Remaining Time, Round Robin(RR) Scheduling, and Multiple-Level Queues Scheduling algorithms. PROCESS SCHEDULING ALGORITHMS A Process Scheduler schedules different processes to be assigned to the CPU based on particular scheduling algorithms. There are six popular process scheduling algorithms given below with different arrival times, and priorities. Let's understand all points. First-Come, First-Served (FCFS) Scheduling Shortest-Job-Next (SJN) Scheduling Priority Scheduling Shortest Remaining Time Round Robin(RR) Scheduling Multiple-Level Queues Scheduling These algorithms are either  non-preemptive or preemptive. Non-preemptive algorithms are designed so that once a process enters the running state, it cannot be preempted until it completes its allotted time, whereas preemptive

Shell Script Example Set 1

Image
  In this " Shell Script Example Set 1", You can learn different programming commands in LINUX Shell. If you are a beginner, then go to " Shell Script Example Set 2 " directly. This article covers File related scripts, date-related scripts, calculator related scripts, directory related scripts. The Linux command line is a text interface to your computer. Also known as shell, terminal , console , command prompts and many others, is a computer program intended to interpret commands . SHELL SCRIPTING EXAMPLE SET 1 In this example set, You can familiar with vi Editor Commands. A table containing commands, descriptions and examples are given below. vi Editor Commands COMMANDS DESCRIPTIONS EXAMPLE vi To create a shell script through vi editor vi first.sh sh To execute the shell script sh first.sh bash To execute the shell script bash first.sh ./ To execute the shell script ./ first.sh i To insert text into vi editor Esc i wq or x To save &a

SHELL SCRIPTING EXAMPLE SET 2

  In " SHELL SCRIPTING EXAMPLE SET 2 ", You can learn How to declare a static array, How to print all elements of an array, How to print the first element, How to print a particular element, How to print elements in the range, How to extract the length of a particular element, and size of an array, How to replacing sub string temporary. topics with examples. In " SHELL SCRIPTING EXAMPLE SET 2 ", You can learn Comparison operators used in Numbers, Strings, and Files. In this “ Shell Script Example Set 1 ″ article, You can learn different programming commands in LINUX Shell. It covers File related scripts, date-related scripts, calculator related scripts, directory related scripts. Check once. Shell Scripting Example Set 2 ARRAY IN SHELL #! /bin/bash #To declare static Array arr=(prakhar ankit 1 rishabh manish abhinav) #To print all elements of array echo ${arr[@]} # prakhar ankit 1 rishabh manish abhinav echo ${arr[ ]} # prakhar ankit 1

OPERATING SYSTEM MCQ

Image
  In this "Operating System MCQ Set 1" covers mainly Monitors, File, Performance, Scheduling , Deadlock, RAG, DOS, UNIX, Process, PCB, Paging related MCQs and Random Operating System MCQs. Questions with answers are given. Try to understand all. take some time. it's easy. OPERATING SYSTEM MCQ over MONITORS A monitor is a type of __ a) semaphore b) low level synchronization construct c) high level synchronization construct d) none of the mentioned A monitor is characterized by __ a) a set of programmer defined operators b) an identifier c) the number of variables in it d) all of the mentioned A procedure defined within a _ can access only those variables declared locally within the and its formal parameters. a) process, semaphore b) process, monitor c) semaphore, semaphore d) monitor, monitor The monitor construct ensures that __ a) only one process can be active at a time within the monitor b) n number of processes can be active at a time within