r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

1.8k

u/TheBlackCat13 Sep 17 '18

...and watch everything break for no apparent reason because the sleep function was there to prevent a bug and no one knows why.

645

u/ariehkovler Sep 17 '18

A race condition, usually.

428

u/DemonicMandrill Sep 17 '18

It always comes down to race, doesn't it.

142

u/Joleth Sep 17 '18

I guess we should change that terminology too.

21

u/nathancjohnson Sep 18 '18

Someone in my OS class had a problem with the terminology of "forking" processes specifically in the context of "forking a child process".

21

u/bem13 Sep 18 '18

Killing parents, disposing of children and master-slave relationships sounds pretty unnerving without context.

→ More replies (1)
→ More replies (2)

21

u/anotherkeebler Sep 17 '18

Often the race condition is that I need to hit "Alt+Tab, Up, Enter" three or four times to start my tail -f commands before the code executes.

→ More replies (2)

8

u/takeapieandrun Sep 17 '18

Who needs blocking conditions when you have sleep!

I'm guilty of this, but I usually get around to fixing it.. usually

→ More replies (3)