Kernel tasks - spawned threads and spawned processes

  • Thread starter Thread starter askingquestion
  • Start date Start date
  • Tags Tags
    Threads
Click For Summary
SUMMARY

The discussion focuses on the concepts of spawned threads and processes within kernel tasks, emphasizing their roles in managing application execution. Spawning a thread allows a single process to have multiple execution paths sharing the same resources, while spawning a process refers to initiating a completely separate executable. The distinction is crucial for understanding asynchronous operations in operating systems, particularly in how user interfaces manage multiple applications simultaneously without waiting for each to finish.

PREREQUISITES
  • Understanding of operating system concepts, specifically kernel functions
  • Familiarity with process management and execution paths
  • Knowledge of synchronous vs. asynchronous operations
  • Basic understanding of application interfaces and user interactions
NEXT STEPS
  • Research "Linux process management" to understand spawning in detail
  • Learn about "threading in C++" for practical implementation of threads
  • Explore "asynchronous programming in JavaScript" for real-world applications
  • Study "operating system design principles" to grasp kernel functionalities
USEFUL FOR

Software developers, system architects, and anyone interested in optimizing application performance and understanding operating system behavior will benefit from this discussion.

askingquestion
Messages
5
Reaction score
0
What is spawned a process meaning:
"organizing and managing threads and the various processes spawned by running applications;"
In more granular terms, accomplishing these three kernel functions involves a range of computer tasks, including the following:

  • loading and managing less-critical OS components, such as device drivers;
  • organizing and managing threads and the various processes spawned by running applications;
I try to use google and I not understand the meaning.
From: https://www.techtarget.com/searchdatacenter/definition/kernel
 
Computer science news on Phys.org
In the simplest terms, when one software program wants another program to run, it do it in one of two ways. It can "call" it and then wait until it finishes. That type of call is "synchronous" because the caller process does not resume until the called process has completed.

Alternatively, the main process can either "spawn" a thread or another process. It this case, both the parent process and the child process run at the same time.

Spawning a thread simply means that a single process has two execution paths that are sharing the same code base and perhaps other resources.

In some cases "spawning a process" can mean the same thing as spawning a thread. But more often, it refers to one process triggering an entirely different process - with a different executable file.

The most common example of spawning a process is when you run a program or app from your laptop or phone. The GUI that you use to find the right icon and "open" that icon is the parent process. That parent process reds in the file with the new program or app that you have selected and runs it - it "spawns" it. You can see that it continues on after starting your app because if you wish, you can use it to open another app without waiting for the first app to end. That GUI program and the apps that you open with is run asynchronously (without waiting for each other). Each one is a process.
 
Last edited:

Similar threads

Replies
8
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
3K
  • · Replies 15 ·
Replies
15
Views
6K
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 8 ·
Replies
8
Views
10K
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K