Arnab Chakraborty has Published 3734 Articles

Linux Process Monitoring

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:29:29

2K+ Views

In Linux, Top command is utilized to monitor Linux Process which is used frequently used by many systems. It is available under many Linux, Unix like operating system. All the running and active real-time processes in ordered list is displayed and updates it regularly by this Top command. display CPU ... Read More

Init process on UNIX and Linux systems

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:28:00

8K+ Views

Init is the parent of all processes, executed by the kernel during the booting of a system. Its principle role is to create processes from a script stored in the file /etc/inittab. It usually has entries which cause init to spawn gettys on each line that users can log in. It ... Read More

What are Named Pipes or FIFO in Linux/Unix systems?

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:23:28

3K+ Views

Pipes were meant for communication between related processes. We Cannot use pipes for unrelated process communication. Then to achieve unrelated processes communication, the simple answer is Named Pipes. Even though this works for related processes, it gives no meaning to use the named pipes for related process communication.Unlike pipe, we ... Read More

Big Endian and Little Endian

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:15:43

17K+ Views

All computers do not store the bytes that comprise a multi-byte value in the same order. Consider a 16-bit internet that is made up of 2 bytes. Two ways to store this value −Little Endian − In this scheme, low-order byte is stored on the starting address (A) and high-order ... Read More

Process Representation in Linux System

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:06:54

1K+ Views

Linux can manage the processes in the system, each process is represented by a task_struct C data structure. It is found in the include file in the kernel source-code directory. The task vector is an array of pointers to every task_struct data structure in the system. As well as ... Read More

How does a process look like in memory?

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:04:47

5K+ Views

A program loaded into memory and executing is called a process. In simple, a process is a program in execution.When a program is created then it is just some pieces of Bytes which is stored in Hard Disk as a passive entity. Then the program starts loading in memory and ... Read More

Deadlock with mutex locks

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 13:01:45

7K+ Views

Deadlock can be occurred in a multithreaded Pthread program using mutex locks. Let’s see how it can be occurred. An unlocked mutex is initialized by the pthread_mutex_init() function.Using pthread_mutex_lock() and pthread_mutex_unlock() Mutex locks are acquired and released. If a thread try to acquire a locked mutex, the call to pthread_mutex_lock() ... Read More

Transactional memory

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 12:58:19

909 Views

Transactional memory originated in database theory, provides an alternative strategy for process synchronization.A memory transaction is atomic is a sequence of memory read–write operations. The memory transaction is committed, if all operations in a transaction are completed. Otherwise, the operations must be aborted and rolled back. The ease of transactional ... Read More

Process Synchronization in Solaris

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 12:56:30

2K+ Views

Solaris implements variety of locks to support multitasking, multithreading and multiprocessing. It uses adaptive mutexes, conditional variables, semaphores, read-write locks, turnstiles to control access to critical sections.An adaptive mutex uses for protecting every critical data item which are only accessed by short code segments.On A multiprocessor system it starts as ... Read More

How to implement monitors using semaphores?

Arnab Chakraborty

Arnab Chakraborty

Updated on 11-Oct-2019 12:51:49

2K+ Views

To implement monitor using semaphores, for each monitor, a semaphore mutex (which is initialized to 1) is provided. Wait(mutex) must be executed by a process before entering the monitor and must execute signal(mutex) after leaving the monitor. Since a signaling process must wait until the resumed process either leaves or ... Read More

Advertisements