What is the thread working area actually used for?
Posted: Fri Apr 07, 2017 12:16 am
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?
- 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?