How are stdin and stdout made unique to the process?

Viewed 1648

Stdin and stdout are single files that are shared by multiple processes to take in input from the users. So how does the OS make sure that only the input give to a particular program is visible in the stdin for than program?

1 Answers
Related