Arnab Chakraborty has Published 4293 Articles

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

933 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

Signals and Signal Handling

Arnab Chakraborty

Arnab Chakraborty

Updated on 17-Oct-2019 08:55:35

4K+ Views

Signals are software interrupts which sent to a program to indicate that an important event has occurred. This events can vary from user requests to illegal memory access errors. Some signals, such as the interrupt signal, indicate that a user has asked the program to do something that is not ... Read More

POSIX Thread Libraries

Arnab Chakraborty

Arnab Chakraborty

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

1K+ Views

Pthreads refers to the POSIX standard (IEEE 1003.1c) defining an API for thread creation and synchronization. This defines specification for thread behavior, not an implementation. The specification can be implemented by OS designers in any way they wish. So many systems implement the Pthreads specification; most are UNIX-type systems, including ... Read More

Implicit Threading and Language-based threads

Arnab Chakraborty

Arnab Chakraborty

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

4K+ 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

Multithreaded using the Pthreads API

Arnab Chakraborty

Arnab Chakraborty

Updated on 16-Oct-2019 08:36:40

2K+ Views

Pthreads refers to the POSIX standard (IEEE 1003.1c) defining an API for thread creation and synchronization, which is a specification for thread behavior, not an implementation. This specification may be implemented by Operating-system designers in any way they wish. The C program shown in below, demonstrates the basic Pthreads API ... Read More

Programming challenges in multicore systems

Arnab Chakraborty

Arnab Chakraborty

Updated on 16-Oct-2019 08:29:58

1K+ Views

The trend towards multicore systems continues to place pressure on system designers and application programmers to create higher use of the multiple computing cores. Designers of operational systems should write programing algorithms that use multiple process cores to permit the parallel execution shown in below Figure −Figure: Parallel execution on ... Read More

Actions taken by a kernel to context-switch between kernel-level threads.

Arnab Chakraborty

Arnab Chakraborty

Updated on 16-Oct-2019 08:28:43

3K+ Views

Context Switching involves storing the context or state of a process or thread so that it can be reloaded when required and execution can be resumed from the same point as earlier. This is a feature of a multitasking operating system and allows a single CPU to be shared by ... Read More

Advertisements