Is single threaded process contains only one thread?

Hamreen Ahmad

Can someone give more explain for single-threaded and multi-threaded processes

Is single threaded process contains only one thread? or it means that that process can contain multiple threads and can run only one thread at a time, then context-switch between them?

If i run a java program on a single core processor is the second one would be true?

Can someone explain it further?

fadden

A single-threaded process is a process with a single thread. A multi-threaded process is a process with multiple threads.

The naming is based on the static configuration, i.e. you could look at the process when execution is suspended and say if it's single-threaded or multi-threaded. Whether or not the threads are executed on a single core or multiple cores doesn't matter as far as the nomenclature goes.

A process with multiple threads all executing on a single core can have race conditions, as can a process with multiple threads executing across multiple cores. Distinguishing the two situations is important for performance evaluation but counter-productive for correctness (i.e. it's useful to assume that each thread is on a separate CPU when considering potential races).

A single-threaded program is a program that only uses one thread. The process might have additional threads; for your example of the Java runtime, you can expect to have a finalizer thread and perhaps one or more threads for garbage collection. It's a single-threaded program running in a multi-threaded process.

(I've heard "process" defined as "the abstraction of a program in execution", i.e. you write a program and then execute it in a process.)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

WP: Display post instead of Subcategory, if Category contains only one single post

分類Dev

Only one process prints in unix, multiprocessing python

分類Dev

Celery - Only one instance per task/process?

分類Dev

Mutable Object safe publication with one only one thread writing

分類Dev

Can `kill` in bash send a signal only to a single process whose process group has other process(es)?

分類Dev

How to make sure only one thread is executing background context block

分類Dev

mpirun without options runs a program on one process only

分類Dev

List of Only One Single value of Filtered List Value

分類Dev

how to grep a word with only one single capital letter?

分類Dev

How to configure a single-threaded ForkJoinPool?

分類Dev

openmp runs single threaded on my mac

分類Dev

If Redis is single Threaded, how can it be so fast?

分類Dev

ASP.NET MVC How to make that one method is executed only by one thread simultaneously?

分類Dev

Does java web application contains only one hibernate session and how to clear this hibernate session?

分類Dev

Core Data SQLite query exponentially slower when subquery predicate contains only one entity

分類Dev

Thread not synchronized with single lock

分類Dev

Iterate a multi-threaded list without synchronizing the entire process

分類Dev

std::condition_variable::notify_all() only wakes up one thread in my threadpool

分類Dev

Does only one Thread executing a Kernel implement the declaration of an array in Shared Memory in CUDA

分類Dev

Akka-Stream implementation slower than single threaded implementation

分類Dev

CoCreateInstance hangs in single-threaded exe COM client

分類Dev

Is there a way to process only one input event after a key is pressed using GLFW?

分類Dev

Angular JS only one controller working when i used multiple controllers in a single page

分類Dev

VBA procedure to import only selected csv files (from one folder) into a single table in access

分類Dev

What is the correct way to check if current process/thread is the main process/thread?

分類Dev

Kill system process in Thread ruby

分類Dev

Is ordered execution expected on the single thread

分類Dev

Are Futures executed on a single thread? (Scala)

分類Dev

why is fasthttp like single process?

Related 関連記事

  1. 1

    WP: Display post instead of Subcategory, if Category contains only one single post

  2. 2

    Only one process prints in unix, multiprocessing python

  3. 3

    Celery - Only one instance per task/process?

  4. 4

    Mutable Object safe publication with one only one thread writing

  5. 5

    Can `kill` in bash send a signal only to a single process whose process group has other process(es)?

  6. 6

    How to make sure only one thread is executing background context block

  7. 7

    mpirun without options runs a program on one process only

  8. 8

    List of Only One Single value of Filtered List Value

  9. 9

    how to grep a word with only one single capital letter?

  10. 10

    How to configure a single-threaded ForkJoinPool?

  11. 11

    openmp runs single threaded on my mac

  12. 12

    If Redis is single Threaded, how can it be so fast?

  13. 13

    ASP.NET MVC How to make that one method is executed only by one thread simultaneously?

  14. 14

    Does java web application contains only one hibernate session and how to clear this hibernate session?

  15. 15

    Core Data SQLite query exponentially slower when subquery predicate contains only one entity

  16. 16

    Thread not synchronized with single lock

  17. 17

    Iterate a multi-threaded list without synchronizing the entire process

  18. 18

    std::condition_variable::notify_all() only wakes up one thread in my threadpool

  19. 19

    Does only one Thread executing a Kernel implement the declaration of an array in Shared Memory in CUDA

  20. 20

    Akka-Stream implementation slower than single threaded implementation

  21. 21

    CoCreateInstance hangs in single-threaded exe COM client

  22. 22

    Is there a way to process only one input event after a key is pressed using GLFW?

  23. 23

    Angular JS only one controller working when i used multiple controllers in a single page

  24. 24

    VBA procedure to import only selected csv files (from one folder) into a single table in access

  25. 25

    What is the correct way to check if current process/thread is the main process/thread?

  26. 26

    Kill system process in Thread ruby

  27. 27

    Is ordered execution expected on the single thread

  28. 28

    Are Futures executed on a single thread? (Scala)

  29. 29

    why is fasthttp like single process?

ホットタグ

アーカイブ