Consider the following code executed by a single process on…
Consider the following code executed by a single process on a Unix-like system: int fd1 = open(“file.txt”, O_RDONLY); // returns 3 int fd2 = open(“file.txt”, O_RDONLY); // returns 4 read(fd1, buf, 100); read(fd2, buf, 50); After both reads complete, what are the file offsets associated with fd1 and fd2?
Read Details