0 votes 0 votes There is no protection between the threads of same process why ? Operating System threads operating-system memory-management + – Gurdeep Saini asked Nov 8, 2018 • edited Jan 17, 2019 by Gurdeep Saini Gurdeep Saini 686 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply prashant jha 1 commented Nov 8, 2018 reply Follow Share I think that's because threads of same process share the same data section in the address space . 1 votes 1 votes Hemanth_13 commented Nov 8, 2018 reply Follow Share As they belong to same process only thing you need to be careful is only about concurrency of data part (we use locks for this)except that we need not take care of anything else I guess 0 votes 0 votes Vikas Verma commented Nov 8, 2018 reply Follow Share By protection do you mean the mutual exclusion? 0 votes 0 votes Please log in or register to add a comment.
Best answer 3 votes 3 votes As the threads do share the same address space, so they may overwrite the data of each other. Due to this reason, there is no protection between the threads of the same process. `JEET answered Nov 8, 2018 • selected Nov 9, 2018 by Gurdeep Saini `JEET comment Share Follow See 1 comment See all 1 1 comment reply Himanshu Kumar Gupta commented Oct 6, 2020 reply Follow Share it is valid for both user and karnel level thread…..???????? 0 votes 0 votes Please log in or register to add a comment.