[20points] In the following code, assume that a system call cannot be interrupted in the
middle of its execution. What will be the contents of the "outfile" file, after all processes
have successfully exited in each of the following programs?
5a.
main() {
int fd;
fd = open("outfile", O_RDWR)
fork();
write(fd, "hello", 5);
exit();
}
5b.
main() {
int fd;
}
fork();
fd = open("outfile", O_RDWR)
write(fd, "hello", 5);
exit();
}