ProgrammerHumor

learningBlues

learningBlues
https://i.redd.it/qppx8z494hdf1.jpeg
Reddit

Discussion

Lucasbasques

Wow, its been years since i saw this meme format

1 day ago
yuva-krishna-memes OP
:c:

I posted a meme with this template 4 years ago and got this comment. Really how old is this template? lol.

1 day ago
LundMeraMuhTera

I saw one joke where the boy rushes in, yelling he can't find mom.

Cue to the dad section: That yellow page (changes to the yellow hair of a woman)

He replies back, well she isn't here either.

1 day ago
bunny-1998
:py:

I remember seeing that one. It was hilarious af

1 day ago
Drone_Worker_6708

rare form where the description is funnier then the meme itself

1 day ago
Gettor

Based on my reaaally long term memory... At least 15-17 years old

1 day ago
MyAntichrist

2009, so pretty much accurate.

1 day ago
neo-raver
:cp::py::rust:

I’ve seen this clear back to 2012, and it predates even that. It’s old, alright!

1 day ago
PrimalDirectory

Early 2000s, so at least a decade maybe 2

1 day ago
anotheridiot-
:g::c::py::bash::js:

Like, 15yrs.

1 day ago
rallyspt08
:cs:

Almost 15 years, I remember this one from 2010.

1 day ago
gkrsuper
:cs::unity:

it just occurred to me that i never saw the orignal comic.

so i looked it up and here it is

1 day ago
Bonzie_57
:ru::ts::py::ansible:

Well. There’s that….

I much prefer this version

1 day ago
bunny-1998
:py:

Well played sir. Very well played

1 day ago
berse2212
:j:

And I have maybe never seen it being used so wrong lol

1 day ago
TheLazarbeam

The format of this is the most funny to me, that the son would ask his (presumably non-technical) dad about this topic, and the dad is just bewildered, and the son asks again, but in Reddit lingo, and then the dad answers in perfect layman’s terms. Just altogether surreal

23 hours ago
TomWithTime

I remember my first semaphore. It was before async was a thing and I needed to wait on 3 network calls to finish. I had each call make a callback with an identifier. Each time the function was called, it checked if every expected identifier had completed, proceeding only after that was the case.

I had a similar approach to my first time working with threads. Instead of worrying about locking 1 memory spot for them to take turns editing, I gave each thread a dedicated memory spot to write their results and then aggregated the results when they all finished.

I guess nowadays I would just use a channel or mutex depending on what I needed to do.

1 day ago
Windyvale
:cs:

I love the name C# gave it. “SemaphoreSlim.” Sounds like a rapper or something lol.

1 day ago
Jugales

Will the real Slim Semaphore please sync up

1 day ago
lr0b

We're gonna have a deadlock here

22 hours ago
AssistantSalty6519
:cs:

The real slim semaphore please stand up

1 day ago
ToughAd4902

Nothing you just posted has to do with a semaphore lol...

1 day ago
TomWithTime

After googling the definition that is true. I used the semaphore mechanisms to do things other than manage access to a singular resource. Is there a precise term for that part of it?

1 day ago
CdRReddit
:rust::c::asm:

sounds somewhat like a barrier? tho barriers are used for syncing up different threads / tasks a callback-based barrier would be something like that

15 hours ago
TomWithTime

tho barriers are used for syncing up different threads

That was my first thread experience with Java, neat! I'll read into that a little more, thanks.

7 hours ago
AssistantSalty6519
:cs:

Wouldn't TaskCompletionSource also work?

1 day ago
dannytk_

It only dawned on me yesterday that mutex is short for MUTually EXclusive (resource access). Don’t know if i am the only one that did not realize.

16 hours ago
musicplay313

Worth using in an interview.

20 hours ago
rancangkota
:ts::bash::py:

Downvoted because incorrect meme format.

1 day ago
bunny-1998
:py:

Upvoted because correct comment

1 day ago
simsanutiy
:py:

Race condition

1 day ago
naholyr

Semaphore is just a list of Mutex then?

The metaphor doesn't work so well imo as the difference is that with Mutex the thread has full ownership on the lock and directly releases it (locked toilet works fine here), while semaphore allows the thread to "signal" it's finished but it does not necessarily ends the wait of another thread, that's up to the semaphore implementation.

Metaphor would work better if urinals were managed by a janitor responsible to allow access. When you're done you tell him, and then it's up to him to decide if someone else can enter. He can be conservative and only let 50% urinals used at once, he can be stupid and let too many people enter and piss on each other too.

15 hours ago
Shad_Amethyst

Not quite. A mutex is a semaphore with a capacity of 1, but semaphores allow for unbounded releases and acquires, or they can start with a capacity of 0 and act like a one-time event.

Semaphores are usually made up of an atomic counter (the number of keys in the bucket) and a conditional variable (to wake up threads who are waiting to acquire the semaphore).

14 hours ago
suvlub

Some implementations also attach "ownership" semantics to a mutex so it can only be unlocked by the thread that originally locked it, making it subtly distinct from a semaphore with capacity of 1, but I don't think this was part of the original definition

14 hours ago
flyingupvotes

Do context next please

16 hours ago
RandomWholesomeOne

A mutex is a semaphore

8 hours ago
RedBoxSquare

Anyone has a gender neutral explanation?

1 day ago
JmacTheGreat
:c:

They said “urinals”, not “men’s bathroom”.

It already was gender neutral.

1 day ago
TheRealAfinda

Probably wanted something along the lines of Urinals<T>?

1 day ago
ComprehensiveWord201

Women don't get to see urinals in their bathrooms. Maybe that is their gripe.

It's the same thing with having a sink in the toilet stall vs having sinks in front of a mirror and no individual sink, though.

1 day ago
Cylian91460

this one by yuva

1 day ago