Arnab Chakraborty has Published 3734 Articles

Resuming Process Monitoring for a Process Instance

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 10:51:37

820 Views

If several processes are suspended on condition x, and an x.signal() operation is executed by some process, then we can determine that which of the suspended processes should be resumed next by one simple solution is to use a first-come, first-served (FCFS) ordering, so that the process that has been ... Read More

Peterson’s Problem

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 10:49:16

19K+ Views

Peterson’s solution provides a good algorithmic description of solving the critical-section problem and illustrates some of the complexities involved in designing software that addresses the requirements of mutual exclusion, progress, and bounded waiting.do {    flag[i] = true;    turn = j;    while (flag[j] && turn == j);   ... Read More

Hardware Synchronization

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:18:41

18K+ Views

In Synchronization hardware, we explore several more solutions to the critical-section problem using techniques ranging from hardware to software based APIs available to application programmers. These solutions are based on the premise of locking; however, the design of such locks can be quite sophisticated.These Hardware features can make any programming ... Read More

Data structures of a Windows thread

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:10:35

806 Views

Windows implements the Windows API, which is the primary API for the family of Microsoft operating systems (Windows 98, NT, 2000, and XP, as well as Windows 7). Basically A Windows application runs as a separate process, and each process may contain one or more threads. Additionally, Windows uses the ... Read More

Lightweight process (LWP)

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:07:48

4K+ Views

Many systems implement either the many-to-many or the two-level model place an intermediate data structure between the user and kernel threads. This data structure—typically known as a lightweight process, or LWP—is shown in below Figure. The LWP appears to be a virtual processor on which the application can schedule a ... Read More

Scheduler activations

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:05:22

2K+ Views

One technique for communication between the user-thread library and the kernel is known as scheduler activation. It works as likes: The kernel provides an application with a set of virtual processors (LWPs), and the application can schedule user threads onto an available virtual processor. Moreover, the kernel must inform an ... Read More

Thread-local storage (TLS)

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:03:18

991 Views

Threads share the data of the process to which it belongs to. This data sharing provides one of the benefits of multithreaded programming. However, in some circumstances, each thread might need its own copy of certain data. Such data is called thread-local storage (or TLS).For example, in a transaction-processing system, ... Read More

What is default signal handler?

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 09:00:01

1K+ Views

Signals are software interrupts which sent to a program to indicate that an important event has occurred. A Signal may be handled by following one of two possible handlers:A default signal handlerA user-defined signal handlerA Default signal handler is associated with every signal that the kernel runs when handling that ... Read More

Implicit Threading and Language-based threads

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 08:46:49

5K+ Views

Implicit ThreadingOne way to address the difficulties and better support the design of multithreaded applications is to transfer the creation and management of threading from application developers to compilers and run-time libraries. This, termed implicit threading, is a popular trend today.Implicit threading is mainly the use of libraries or other ... Read More

Windows thread API in the C program

Arnab Chakraborty

Arnab Chakraborty

Updated on 16-Oct-2019 10:39:12

3K+ Views

Threads are created in the Windows API using the CreateThread() function, and—just as in Pthreads—a set of attributes like security information, the size of the stack, and a flag for the thread is passed to this function. In the below program, we use the default values for these attributes. (The ... Read More

Advertisements