Page 1 of 1

What is the thread working area actually used for?

Posted: Fri Apr 07, 2017 12:16 am
by carldong
According to documentations I found, it seems to be used for "context switching". However, I find it hard to estimate how much working space is actually needed. I find it intriguing to dig through the code because I couldn't find a straightforward way to search for relevant code. I boil down my questions into these:

- Does each OS call use some?
- Does context switching change the stack pointer address?
- Is it only the system calls that consumes working space? Or does local variables to a thread also use said thread stack?

Re: What is the thread working area actually used for?

Posted: Fri Apr 07, 2017 7:48 am
by Giovanni
The working area is the thread stack area, anything using stack requires space there.

Giovanni