r/ProgrammerHumor • • 11d ago

Meme cppAndItsVectorBooleans

Post image
3.4k Upvotes

214 comments sorted by

View all comments

Show parent comment

3

u/Scared_Accident9138 9d ago

Concurrency wasn't supported by the C++ standard itself back then, so there also wasn't a need to specify what happens in case of concurrent access

1

u/Usual_Office_1740 9d ago

Yeah. I got my first multi core processor in 2004ish? The standard would have been written in the late 90's. Was concurrent programming something the average developer even considered?

1

u/Scared_Accident9138 9d ago

Wasn't the Linux way to just use fork if you need parallelism back then? (I mean it's still a thing)

1

u/Usual_Office_1740 9d ago

I don't know. I’ve only been programming for a few years. I’ve used fork for capturing stdout write calls for unit testing but that was it.

1

u/ih-shah-may-ehl 7d ago

My big problem with fork is that it requires you to build everything into the same process, then fork, and choose behavior depending on which of the instances you are. In many cases, you want multithreaded parallelism in the same process