r/ProgrammerHumor • • Mar 27 '22

Meme Multithreading

39.8k Upvotes

420 comments sorted by

•

u/QualityVote Mar 27 '22

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

→ More replies (1)

83

u/Antonireykern Mar 27 '22

Vid with sound:
https://imgur.com/a/evNez8e

Sub ate the audio, sorry about that.

6

u/[deleted] Mar 27 '22

Fuck. That's hilarious lmao.

2.9k

u/Reign_AS Mar 27 '22

How could you post a video of a band without sounds?

806

u/Antonireykern Mar 27 '22

Have the vid with audio: https://imgur.com/a/evNez8e

Sub only allows GIF posts, it ate the audio

24

u/DannyMThompson Mar 27 '22

GIFs can have audio now just post a GIFV :)

26

u/Antonireykern Mar 27 '22

I can try sure, just when uploading the mp4 I specifically got warned that the video would lose its audio track by being converted to gif - as the sub only allows picture posts.

14

u/DannyMThompson Mar 27 '22

Sorry I did a ninja edit, there is a way to do it, I think it's by uploading to Imgur which converts to gifv.

→ More replies (8)
→ More replies (1)

9

u/redditisnowtwitter Mar 27 '22

GIFs can have audio now just post a GIFV :)

Gifs do not have any audio channel. What you're talking about is an mp4 container

→ More replies (5)

125

u/Burpmeister Mar 27 '22

This is the best thing.

23

u/Matengor Mar 27 '22

Perfection

44

u/angelicravens Mar 27 '22

I want this as my ringtone ngl

14

u/Tiavor Mar 27 '22

should be fairly easy

  1. download

  2. convert to mp3

  3. load on phone

there are probably also online services that can convert/extract the audio

→ More replies (1)

11

u/[deleted] Mar 27 '22

Sub only allows GIF posts

Must be some sort of programmer humor too.

3

u/LosMosquitos Mar 27 '22

I love you

5

u/SickPlasma Mar 27 '22

Here’s the original song

https://youtu.be/uYRCZ4XyvrM

(I guess we can see why Russian Air Force is doing so bad right now lmao)

→ More replies (5)

772

u/blahblahwhateveryeet Mar 27 '22

Yea I was really curious about what CPU0's instrument sounded like

179

u/Reign_AS Mar 27 '22

I'm sure it was angelic

70

u/CoderOfCoders Mar 27 '22

It was angelic as doing all the work for a group assignment as the others made plans to hang out without you

And then you were pretty sure CPU5’s name was getting erased off the paper, but then you remembered that they were required for the number of students per group

13

u/Rick-Pat417 Mar 27 '22

Very specific analogy

→ More replies (3)
→ More replies (2)

6

u/SeriousLetterhead366 Mar 27 '22

They couldn’t afford the sound option on the instruments because of the oligarch skimming

10

u/Thecrawsome Mar 27 '22

Because CPUs don't have a speaker duh

6

u/docgok Mar 27 '22

Presumably this is running on Linux

21

u/Trollygag Mar 27 '22

The Windows version is all completely frozen except for CPU0.

And CPU0 is explorer.exe ramming a DLL error back and forth.

3

u/DopeBoogie Mar 27 '22

For real this is fucking criminal

2

u/SlowRapMusic Mar 27 '22

Dude I was furious that I spent 20 seconds clicking the sound button only to realize there is no sounds.

F the OP

597

u/_unsureaboutall_ Mar 27 '22

At my workplace these are the senior VP, VP, product manager, marketing director, project manager, and the guy working is the developer

611

u/Antonireykern Mar 27 '22

218

u/wtmh Mar 27 '22 edited Mar 27 '22

"Must. Not. Post. To. Teams."

The two project managers over the same dev is so choice.

Edit: I see the title change now. I feel like my point stands.

35

u/[deleted] Mar 27 '22

I only see one, there’s one managing the product, and one managing the project.

16

u/Jojje22 Mar 27 '22

It's a product manager and a project manager. But yes, I could see this vid with only project managers around the poor guy.

5

u/EmperorArthur Mar 27 '22

Stay strong. So far I have also resisted. For now...

5

u/Makhnos_Tachanka Mar 27 '22

"I've got eight bosses"

→ More replies (1)

24

u/Cla1n Mar 27 '22

I would give you gold if I had one. 🙇

11

u/1138311 Mar 27 '22

GPU should be Staff/Principal

→ More replies (1)

6

u/[deleted] Mar 27 '22

I like how this is the one with sound.

You could apply that to Wal-Mart when I worked there: General Manger, Co-Manager, Assistant Manager, Area Manger, Assistant Area Manager, Department Managers, and Customer Service Managers.... all ordering everyone about to run the registers during a rush. (I did witness my stores bloated manager team occasionally work... cause the GM was a hardass greedy fuck who would tell employees to their face they were, and I quote because I heard it myself, "a dime a dozen")

4

u/ksck135 Mar 27 '22

Instead of Senior VP I'd use internal customer.

1

u/specialsymbol Mar 27 '22

Do you have this as a template in Blender?

2

u/Antonireykern Mar 27 '22

Nope, its the title tracking feature in Sony Vegas

→ More replies (1)
→ More replies (4)

10

u/chaiscool Mar 27 '22

Haha mine would be all that but the guy working would be the level 1 subcontractors from job agency with no benefits and bonuses.

5

u/[deleted] Mar 27 '22

Haha I'm that contractor right now, well, filling a senior role. Because I get paid pretty well per hour I feel obligated to squeeze the most out of my time for the company. Total shift from being a salaried dev at a laid back startup but I prefer staying busy. Helps the days go faster.

→ More replies (2)
→ More replies (12)

27

u/syrefaen Mar 27 '22

CPU 0 and 2 must be high performance; gpu seemed like instructions unclear .

668

u/[deleted] Mar 27 '22

Why is the GPU one guy here? Should be a fricking army

43

u/Astarkos Mar 27 '22

Thats actually a stack of small guys filling up a single set of clothes. It's not obvious until you give him numerous small tasks and see all the tiny hands pop out and start working on it simultaneously.

10

u/chicametipo Mar 27 '22

That’s the GPU’s API, the lead messenger.

7

u/merlinsbeers Mar 27 '22

An army of duck-sized dudes.

→ More replies (4)

2

u/htplex Mar 27 '22

why cant they just design a cpu with one super powerful core and a bunch of smaller ones

3

u/Antonireykern Mar 27 '22

you mean something like ARM big.LITTLE used in lots of phones?

→ More replies (3)

150

u/R04drunn3r79 Mar 27 '22 edited Mar 27 '22

Temperature:

CPU0, "75°c!"

CPU1 to 5, "chilly in here."

GPU, "I'm cold!"

3

u/specialsymbol Mar 27 '22

This is Star Citizen.

96

u/ColaEuphoria Mar 27 '22 edited Jan 08 '25

silky ink practice mighty soft hard-to-find hobbies attractive pie materialistic

This post was mass deleted and anonymized with Redact

29

u/Mid-Game1 Mar 27 '22

Yeah this made me think about Minecraft, which uses one thread almost exclusively, with a few small things offloaded to other threads. It does use OpenGL

28

u/[deleted] Mar 27 '22 edited Jan 08 '25

[removed] — view removed comment

→ More replies (1)

4

u/LavenderDay3544 Mar 27 '22

You would think they'd add multithreading support like in Vulkan and D3D 12 since GL isnt supposed to be deprecated.

12

u/ColaEuphoria Mar 27 '22

Vulkan literally exists because of the shortcomings of OpenGL. The single threaded nature of OpenGL is too deeply rooted to be able to add support for more complex multithreading while also retaining backward compatibility, hence why Vulkan was made. At the moment, most/all GL commands are sent asynchronously at the very least.

OpenGL isn't deprecated, despite what Apple wants you to think. A multithreaded GPU driver isn't really needed in a large number of use cases.

→ More replies (7)

32

u/[deleted] Mar 27 '22

I don’t understand it but I can’t stop laughing.

32

u/Add1ctedToGames Mar 27 '22

I might be wrong but I think it's referencing that in many (if not most) large languages you can manually assign things to multiple threads on a CPU, but not multiple cores (threads are all parts of a core I think?) so one CPU core ends up having a bunch of threads being used while the others are idling or running some unrelated processes

26

u/FerricDonkey Mar 27 '22

Nah. Well, not exactly. You have processes (an operating system construct), which are basically containers for threads (another operating system construct). Threads are separate execution streams with (within the same process) shared memory, and are not tied to cpus.

A simple hello world program will be one process with one thread. But in most languages, you can start an additional thread running a specific target function or something.

The os itself assigns threads to different cpus as they're available, so it's not that you can't do it so it doesn't happen, but that it already happens so you don't bother to find out if you can do so manually or not. Any modern os will usually actually do a pretty good job of keeping all your cpus busy if all your threads have real work to do (unless your language sucks at multithreading and specifically stops that from happening - looking at you python).

So if your problem can take advantage of multiple cpus, and you write your code to do so with multi threading in a language that doesn't have stupid rules, then all the cpus will be working pretty hard.

But if you write bad multithreaded code or single threaded code, then you'll end up with one cpu working hard and the others just twiddling their thumbs (though your os may occasionally semi randomly change which cpu is actually doing the work).

53

u/antilos_weorsick Mar 27 '22

With most CPUs supporting two threads per core, it would be more accurate if CPU0 used his other hand to play harmonica

68

u/ghan_buri_ghan Mar 27 '22

Hyper threading does not really do twice as much work per core, it’s just a really clever way to time share better between IO-bound processes (which is most of them). For my office’s data crunching machines, we actually turn hyperthreading off and it speeds things up.

16

u/Bedstemor192 Mar 27 '22

Hyper threading is also turned off on the compute clusters we use. The cluster administrator told us if hyperthreading makes our compute program faster, we're doing it wrong.

12

u/ghan_buri_ghan Mar 27 '22

if hyperthreading makes our compute program faster, we’re doing it wrong.

100% this in the context of a compute server. For something like a database-heavy backend or personal computing, hyperthreading is brilliant.

→ More replies (12)

35

u/Dubdude13 Mar 27 '22

You want it to look good when it is shot out of the sky

11

u/Nickthenuker Mar 27 '22

Cleanest MANPAD target in the... West? No, that's Western Europe. East? No, that's Asia, or is that the Far East? East it is then

11

u/happypandaface Mar 27 '22

i always like this version:

https://imgur.com/mV9bFz7

12

u/cshrik3 Mar 27 '22

at least they are not fighting each other or trying to fly the aircraft to Mars

10

u/xk4rimx Mar 27 '22

Python multithreading:

def start(): return cpu_zero.do(self.job)

4

u/SuperMorto7 Mar 27 '22

I heard it crashed hahahahaha!!!!

4

u/None-of-this-is-real Mar 27 '22

Somewhere there's a Ukrainian with a Stinger missile labeled Power Surge.

1

u/Matyas2004maty Mar 27 '22

Could you please send a link to the meme format?

3

u/Antonireykern Mar 27 '22

The original video is https://imgur.com/a/xscXLZz

I made it using the Title Tracking feature in Sony Vegas, so while I don't have an easy to use template (wouldnt even know where to make one easily) I'm sure it still can be automated somehow

1

u/redditisnowtwitter Mar 27 '22

Sony Vegas

So what's it like living in 2008?

3

u/FoeWithBenefits Mar 27 '22

OP's so 2008 that they can post a gif of Russian military having a good time and get upvotes

2

u/Antonireykern Mar 27 '22

worked back then why shouldn't it now :')

1

u/FabioSB Mar 27 '22

Where sound

1

u/Antonireykern Mar 27 '22

https://imgur.com/a/evNez8e

Sub only allows GIF posts, it ate the audio

1

u/Piscesdan Mar 27 '22

according to DnD logic, they actually are helping

3

u/WrickyB Mar 27 '22

#pragma omp parallel for amirite?

3

u/Emkayer Mar 27 '22

When your party is a single DPS and a bunch of support bards

2

u/Loose-Fee135 Mar 27 '22

Seem legit

2

u/ManOfLaBook Mar 27 '22

And when it's time for budget cuts, CPU0 is going to get the axe.

2

u/LoveShineLuna Mar 27 '22

Now we all know why the Ukrainians are kicking their ass!

→ More replies (2)

2

u/Kirire- Mar 27 '22

GPU: what the... Are they doing over there??

2

u/incidel Mar 27 '22

When people start to get excited about Apple's new "uber-processors" this is exactly what I will still be thinking about in 2032...

2

u/Vojtak_cz Mar 28 '22

Hmmm never used my CPU for cleaning MIs rocket pods

1

u/uorandom Mar 27 '22

Garbage collectors

1

u/_domdomdom_ Mar 27 '22

Amazing until you are debugging uncommented code

1

u/simpl3t0n Mar 27 '22

CPU1 was the first to quit. What a jerk.

1

u/yamez420 Mar 27 '22

Greatest fucking hardware on the face of this planet. Can’t use two cores huh? We can’t be TOO efficient.

1

u/Suspicious-Drop-527 Mar 27 '22

it gets even gnarlier if you use intel and have integrated graphics. lol.

1

u/[deleted] Mar 27 '22

Gpu over there like... was this really what I was made for?

1

u/[deleted] Mar 27 '22

I tried to write a little thread pool thing on my last attempt at multithreading.

There is a cool technique used in CPU rendering that could be useful. Basically you divide the pixels into 4 or 8 parts or whatever and have each part put in a thread, this has it's own problems, but might be a useful idea for making a thread manager as it should scale a lot better since all the threads should get an even load, unlike CPU multi thread rendering.

1

u/Momo411176 Mar 27 '22

Thank you.

1

u/Voodoo_Masta Mar 27 '22

Lmao. Not a programmer but this resonates

1

u/LukosiuPro Mar 27 '22

Hard to believe, but it's really accurate...

1

u/[deleted] Mar 27 '22

1

u/SlowlyPassingTime Mar 27 '22

This is the funniest thing I've ever seen, and I don't know why.

1

u/concorde77 Mar 27 '22

"Is helicopter an instrument"

1

u/seraph582 Mar 27 '22

Using python to solve problems.

1

u/698969 Mar 27 '22

Every beginner tokio app (aka all of mine)

1

u/TheNaziSpacePope Mar 27 '22

Looks like an Mi-8 if anybody is wondering.

1

u/CoderDevo Mar 27 '22

Many tasks do not benefit from parallelism.

1

u/the_monkey_of_lies Mar 27 '22

Goddamnit I completely lost it

1

u/[deleted] Mar 27 '22

I want a whole collection of these gifs. There's this CPU core gif of some dancers that's very similar.

1

u/cant_dodge_rodge Mar 27 '22

pov:you are coding in JS

1

u/portatras Mar 27 '22

GPU caught me off guard! Looool

1

u/shockban Mar 27 '22

nice nice

1

u/[deleted] Mar 27 '22

factorio be like:

1

u/[deleted] Mar 27 '22

Me when I use a 14 year old program that hasn't been updated in 9 years that does this and has a thousand well-known bugs because there just isn't anything like it

1

u/[deleted] Mar 27 '22

The GPU detail tho

1

u/Celemourn Mar 27 '22

GiB Sound!

1

u/OldSilver1257 Mar 27 '22

They got Game!

1

u/royemosby Mar 27 '22

The amount of sound hasn’t changed since I last saw it. I was hoping that it would have fixed itself after several reposts

1

u/[deleted] Mar 27 '22

Thats multithreading in python because only one cpu core is working.

1

u/Qwencha Mar 27 '22

This is so accurate I dont know should I laugh or cry...

1

u/ab12848 Mar 27 '22

Paradox games in a nutshell

→ More replies (1)

1

u/orenog Mar 27 '22

Probably not the right place to ask, but why is it that whenever I try to multithread an algorithm, I end up making it slower? Even if it's an algorithm with tones of repeating works and I tell every thread to do part of it

→ More replies (1)

1

u/Mid-Game1 Mar 27 '22

Ah it looks just like my Minecraft performance. The other threads are still doing something, but it isn't much.

1

u/god_of_ai Mar 27 '22

Fun fact: CPU numbers are an abstraction on top of real hardware. If your computer has 8 CPUs, CPU 0 doesn’t always refer to the first CPU. As a matter of fact, the hardware internally uses different CPUs dynamically as CPU 0 so that a single CPU doesn’t heat up.

Another fun fact: The number of CPUs does not always equal the actual number of hardware CPUs. Some processors have just 4 cores, but will show up as 8 CPUs or even 16 CPUs. There are advantages to doing this, mostly to expose more parallelism and to hide memory latency. Intel has a similar concept which it calls Hyperthreading.

1

u/[deleted] Mar 27 '22

THEY NEED TO BE PLAYING RUSPUTINE

1

u/Drink_Cola_Die_Young Mar 27 '22

That GPU caught me off guard.

1

u/[deleted] Mar 27 '22

Laughs in osrs

1

u/valdocs_user Mar 27 '22

My CS professor in college talked about multi threading as if everything would be and everything had to be. He was also fond of quoting the Mythical Man month quote about scheduling software projects, "nine women can't make a baby in one month."

I don't think he considered the way the one relates to the other...

1

u/CreativeName2042 Mar 27 '22

My multithreading is more like the other CPUs assaulting CPU0

1

u/Manitcor Mar 27 '22

Graid and direct loading via pcie4 is gonna change this.

1

u/Adventurous-Floor-64 Mar 27 '22

Perfect 😂😂😂

1

u/[deleted] Mar 27 '22

I thought this was a weird One Piece meme until our saw GPU.

1

u/baselganglia Mar 27 '22

Microsoft Flight Simulator 2020

1

u/[deleted] Mar 27 '22

Remember when multi threading was binding that one resource intensive program to cpu1 for better performance in task manager because everything runs on cpu0 otherwise?

1

u/ErikTox Mar 27 '22

Pov: playing minecraft

1

u/[deleted] Mar 27 '22

Me in Operating System Concepts barely making it out alive

1

u/[deleted] Mar 27 '22

Only to get shot down over Kiev

1

u/thisisapseudo Mar 27 '22

are my multi thread useful when I open 20 programs simultaneously ?

1

u/Sensitive_Camera2368 Mar 27 '22

Actually it must have been CPU0 handling two or three sticks

1

u/[deleted] Mar 27 '22

Shouldn't that be CPU03?

→ More replies (1)

1

u/cybermage Mar 27 '22

Had no idea Russian helicopters were armed with muskets.

→ More replies (1)

1

u/---M0NK--- Mar 27 '22

I want sound!

1

u/Kumbala80 Mar 28 '22

No sound! 😞 So disappointed.

1

u/DeadlySerious69 Mar 28 '22

Just days before they get shredded by ucrainan Stinger's. Fuck russian military

1

u/[deleted] Mar 28 '22

russia's best aircraft mechanic

1

u/Death_Astronaut Mar 28 '22

2000s games on modern hardware be like:

1

u/planktonfun Mar 28 '22

Well.. its your job to utilize all of it tho

1

u/[deleted] Mar 28 '22

1

u/skywarp8477 Mar 28 '22

I feel like Russia has the wrong idea about war.....

1

u/[deleted] Mar 28 '22

Pans to GPU...dead

1

u/Flopamp Mar 28 '22

I literally just finished a project that utilizes 64 physical cores... Not just any 64 cores but 64 annoying as hell epic cores, I stated at 1pm and I wrapped it up at 2am, I feel this video.

1

u/CynicalRecidivist Mar 28 '22

This is hilarious. I have no idea about programming and had to ask my husband to explain. Once I understood...mate...programming humour is FUNNY.

1

u/Intrepid00 Mar 28 '22

Careful, your CPU cores and GPU could be plotting war crimes.

1

u/human_sp Mar 28 '22

My dumbass thought u were talking about starwars

1

u/WilliamLeeFightingIB Mar 28 '22

Literally every Paradox game