3 ms·
A fair amount of the timeline for Unix was when it supported multiple processes, but not multiple threads. SunOS/Solaris didn't have threads until 1992, for exa
by tyingq 6y ago
A fair amount of the timeline for Unix was when it supported multiple processes, but not multiple threads. SunOS/Solaris didn't have threads until 1992, for example, and it still didn't support SMP, so global state wasn't an issue initially. Strtok() predates 1992. They did add strtok_r() once Posix threads were a thing.