asked 197k views
1 vote
:If a process terminates, will its threads also terminate or will they continue to run? Explain your answer.

1 Answer

2 votes

Answer:

Threads will terminate

Step-by-step explanation:

Each process are assigned there own memory and resources, Process is also called Application such as Chrome, Word etc. Process can have one or many threads. each thread shares the memory and resources of its process.

Once the process terminates and its free its memory and resources, Which means all of its threads automatically terminated as they share the memory and resources of process.

Thread can only resides within process resources.

answered
User AJF
by
7.7k points