How do threads work?



How do threads work?..

Answer / Sandip Kumar Maurya

Threads in Linux are lightweight processes managed by the kernel. Each thread shares the same memory space and system resources as its parent process, but each has a separate program counter (PC) register and stack. The kernel schedules the execution of multiple threads, allowing them to run concurrently on the same CPU or across multiple CPUs. Threads are created using various system calls like pthread_create().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Threads Interview Questions

An extended partition can contain many sub partitions called_______

7 Answers  


At installation,Red Hat Fedora Linux creates a symbolic link called _____ to the appropriate cd-rom device

3 Answers  


Are threads as good as cores?

1 Answers  


What does threads mean when downloading?

1 Answers  


What are the benefits of multithreading?

1 Answers  


how will you distinguish if it is a process or a thread, provided you know pid in linux operating system?

1 Answers   SwanSoft Technologies,


Is thread an abstract class?

1 Answers  


Do threads have pids?

1 Answers  


What is kernel level thread?

1 Answers  


Is creating a thread expensive?

1 Answers  


What does thread mean in slang?

1 Answers  


How do you create a thread?

1 Answers  


Categories