Pthreads

Pthreads is the POSIX standard (IEEE 1003.1c) defines an API for thread creation and synchronization. It is only a specification, not implementation which a programmer can do any way they wish.Some examples of systems using are Solaris, Linux, Mac OS X, and True64 UNIX.Here is an example of Pthread API for constructing a multi-threaded program … Read more

Multi-threaded Programming

A thread is a basic unit of CPU utilization; it has a thread id, a program counter, a register set, and a stack. It shares code, data and other os resources such as open files and signals with other threads in the process.Multi-threaded ProcessesThe traditional single-threaded program can do only one task, the multi-threaded process … Read more

Operating System Structure

OS provides the computing environment. They are organized in many ways in different systems, but a few things are common for all OS.In a single user system, the CPU sits idle when I/O is working or vice-versa. The CPU utilization increase with multi programming systems. A subset of jobs from a pool of jobs on … Read more

Computer System Structure

The computer system structure consists of interrupt mechanism for I/O devices, memory unit to run programs, memory protection, and disk storage to save program and data files.Computer-system operationsA modern general purpose computer has CPU and device controllers for devices such as disk, audio devices, and video display devices connected to a common system bus. Each … Read more

OS System Calls

A system call is an interface between the user program and the operating system. The program asks for different services and in response the OS invoke a set of system calls to fulfill the request.What is a system call?A system call is written in either assembly language or a high level such as C, Pascal … Read more

Process Concepts

A process is program in execution in a modern time-sharing computer. A process needs resources such as CPU, memory, and input-output devices. OS is responsible for creating, deleting, and maintaining process information.Understanding ProcessesTherefore, we can safely say the following things about the process: A process is an instance of a program in execution in a … Read more

Operating System Concepts

An operating system is system software that ensures the smooth functioning of a computer system.In earlier days of computing, the only job of a computer was to compile source code into a program. There were programs to do other tasks such as printing, loading source code, etc. These programs are called system programs because they … Read more

Deadlock Prevention With Banker’s Algorithm

In this article, you will learn about deadlock prevention method – Banker’s algorithm and Resource allocation graph. You will also learn about 4 conditions for deadlock.Let’s start with the resource allocation graph.Resource Allocation GraphResource Allocation graph describes the deadlock more precisely. It has a set of vertices V and set of edges E.Vertices typesVertices are … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version