Hack Forums
Programming Joke [Windows vs. Linux Multithreading] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: Programming Joke [Windows vs. Linux Multithreading] (/showthread.php?tid=5066062)



Programming Joke [Windows vs. Linux Multithreading] - Mouse❤️ - Nov 21, 2015

[Image: fQ763Ug.gif]
I used to do this on another board of which I was a part so I figured, why not. If it's not allowed, remove it, but everyone needs some comedic relief every so often.


* - stugz - Nov 21, 2015

Very clever. I thought I missed something in the Unix picture until I looked closely.


* - Mouse❤️ - Nov 21, 2015

Quality is quite bad I noticed. I'll change the image when I get the chance.


* - CyberneticTitan - Nov 21, 2015

[Image: vB3oFzV.png]


* - Mouse❤️ - Nov 21, 2015

(Nov 21, 2015 11:12 PM)CyberneticTitan Wrote:  [Image: vB3oFzV.png]
Multithreading in windows:
Code
HANDLE WINAPI CreateThread(
  _In_opt_  LPSECURITY_ATTRIBUTES  lpThreadAttributes,
  _In_      SIZE_T                 dwStackSize,
  _In_      LPTHREAD_START_ROUTINE lpStartAddress,
  _In_opt_  LPVOID                 lpParameter,
  _In_      DWORD                  dwCreationFlags,
  _Out_opt_ LPDWORD                lpThreadId
);

Multithreading on Unix:
Code
pid_t fork(void);



* - Black‌jack - Nov 23, 2015

I think you're confusing multithreading with multiprocessing here.

Amusing, nonetheless.


* - +Haze - Nov 23, 2015

Is that actually you in the Gifs Op?


* - Mouse❤️ - Nov 24, 2015

(Nov 23, 2015 06:28 AM)Black‌jack Wrote:  I think you're confusing multithreading with multiprocessing here.

Amusing, nonetheless.
Well it's multithreading in Windows with the example that I used. I'm not a unix guy, but I more or less assumed.
(Nov 23, 2015 06:30 AM)+Haze Wrote:  Is that actually you in the Gifs Op?
Yes. Hello, I am a bald Aboriginal guy. o3o


* - #Revenge - Dec 21, 2015

Do you have a way to contact you apart form fucking pm im to shitty to pm yet lolol


* - Mouse❤️ - Dec 22, 2015

(Dec 21, 2015 09:23 AM)NichePro Wrote:  Do you have a way to contact you apart form fucking pm im to shitty to pm yet lolol
My skype's rodaxoleaux


* - Loki123 - Dec 22, 2015

multithreading on Unix variants with pthreads.

https://computing.llnl.gov/tutorials/pthreads/#PthreadsAPI