Skip to content

Tag Archives: Processes & Threads

Given an array arr[] of size N and an integer T representing the count of threads, the task is to find all non-repeating array elements… Read More
User Interface Thread or UI-Thread in Android is a Thread element responsible for updating the layout elements of the application implicitly or explicitly. This means,… Read More
Prerequisite: Socket Programming in C/C++ It is possible to send data from the server and receive a response from the client. Similarly, the client can… Read More
When a thread moves through the system, it is always in one of the five states: (1) Ready (2) Running (3) Waiting (4) Delayed (5)… Read More
In Java, there are two types of threads: Daemon Thread User Thread Daemon threads are low priority threads which always run in background and user… Read More
Thread::get_id() is an in-built function in C++ std::thread. It is an observer function which means it observes a state and then returns the corresponding output.… Read More
Prerequisite: Pipe() and Fork() Basic Write a C program in which the child process takes an input array and send it to the parent process… Read More
Program to create four processes (1 parent and 3 children) where they terminates in a sequence as follows : (a) Parent process terminates at last… Read More
The problem is to synchronize n number of threads using pthread library. The idea is take thread count and print 1 in first thread, print… Read More
It is known that fork() system call is used to create a new process which becomes child of the caller process. Upon exit, the child leaves… Read More
Print 1 2 3 infinitely using thread. Create three threads viz T1, T2, and T3 such that those should print 1 2 3 sequence infinitely.… Read More
Prerequisites : Socket Programming in Java This article assumes that you have basic knowledge of socket programming in java and the basic details of client-server… Read More
Time-sharing means sharing of computing resources among many users (processes) by means of multiprogramming and multitasking. By allowing a large number of users to interact… Read More
We have discussed Three methods of Zombie Prevention. This article is about one more method of zombie prevention. Zombie Process: A process which has finished… Read More
Thread of execution is the smallest sequence of programmed instructions that can be managed independently by scheduler. Thread is a component of process and so… Read More

Start Your Coding Journey Now!