986 views
1 votes
1 votes
Which of the following state is private/specific to a thread?

a) Program Counter

b) Stack Pointer

c) Execution Stack

d) I/O State(File memory)

Options

A) a),b),c) only

B) only a) and b)

c) only c)

d) All

Ans is b).. Is execution stack shared among the threads as only code,data and files are shared among the threads

1 Answer

1 votes
1 votes
If execution stack is shared, suppose one thread calls a function, (that function will push the activation record on to stack), then the current activation record in the other threads gets corrupted.

Related questions