985 views
0 votes
0 votes

If one thread opens a file with read privileges then



a) other threads in the another process can also read from that file
b) other threads in the same process can also read from that file
c) Both a and b
d) Neither a nor b

1 Answer

0 votes
0 votes
Answer should be B

The file is local to the processes in multi threading programming so any change by a thread will reflect for the other threads also, where as for different threads in different processes to access the same file is possible if another copy file exits similar to the fork() system call

Related questions

–1 votes
–1 votes
1 answer
1