Let's supose I have a main function in C , and two POSIX threads. I give you an example down :
int main() {
int something;
char else[];
void *FirstThread();
void *SecondThread();
..
<start those two pthreads ..>
return 0;}
void *FirstThread() { ... }
void *SecondThread() { ... }
First and Second thread will use something and else , int and char . Do thow two pthreads share the same space of memory ? I mean , First thread will modify the same something ( place of memory ) like Second Thread ?