3 ms·
I think I was most surprised to see that fork used to take a label. How did that work?
by wtbob 11y ago
I think I was most surprised to see that fork used to take a label. How did that work?
- pacaro 11y agoJust guessing, but the label probably became an address on compilation, so one branch of the fork would return in the usual way, the other would jump to the label/address
- Someone 11y agoFrom the article: "The new processes differ only in that one is considered the parent process: in the parent, control returns directly from the fork, while in the child, control is passed to location label"