Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What will this program do?
int main() {
fork();
execl("/bin/ls", "/bin/ls", NULL);
printf("hello");
}
run ls twice
run ls twice and print hello twice
one process will run ls, another will print hello
run ls twice and print hello twice, but output will appear in some random order
run ls once
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!