Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

multithreading for fagstorms

Name: Anonymous 2012-04-15 21:36

Does anyone know of a good resource for learning multithreading in C? Something a faggot like me can understand.

This shit is confusing as fuck and the Jewish Philosophers problem isn't helping at all.

Name: Anonymous 2012-04-15 22:00

Who are we? Who are we with? Who are we for? Who is for us? In addition there are national and supranational. Of course, we should not get hung up on the national level. But there is such a filthy word "internationalism", loved by the Jews. For the word "inter" there are two meaning in English. The first - "between", the second - "death" or "to bury." Whether internationalism - a between-nationalism, or the death of nationalism. However, we have little choice. The Jews - the true between-nationalists. They tack between the nations, they are all wrong, quarrelsome, unable to settle down in any nation, and infesting it with their geshefts. It's between-nationalism - the original instigator of any national conflicts the Jews provoke pushing nations against each other, because the Jews benefit from the discord. Our noble Russian nationalism has nothing to do with the repugnant Jewish Zionism, which internationalistic in form and chauvinistic in effect.

Name: Anonymous 2012-04-15 23:09

>>1
Each type of operating system has its own APIs for multithreading. However, there's a lot of theory you need to understand that is transferable across OSes.

The new C11 revision to the standard has builtin multithreading libraries, but I'm not sure if GCC or Clang have that stuff implemented yet.

It shouldn't be that confusing, it's actually fairly intuitive. The best way to think about your multi-threaded application is if it's a networked client-server or peer-to-peer architecture, where different threads are like different peers. The only difference is that each "peer" has access to the same shared memory, and exists in the same addressing space--threads can access the same memory location simultaneously and therefore need to be appropriately synchronized so that the program as a whole doesn't enter into a bad state. It's actually pretty simple if you follow the basic idioms of using mutexes for synchronizing access to a memory location, and condition variables/events for signalling between threads.

The tricky part is when you attempt to build custom synchronization primitives using the atomic operations and memory fence instructions provided by your target CPU architecture, but you can always get away with the toolkit of synchronization primitives provided to you by whatever API you happen to be using.

Name: Anonymous 2012-04-15 23:39

>>3
DON'T HELP HIM!

Name: Anonymous 2012-04-15 23:41

You can use pthreads if you are on a UNIX-like OS.  If you want compatibility across both Windows and UNIX, then there is glib.

http://developer.gnome.org/glib/2.32/glib-Threads.html

Name: Anonymous 2012-04-16 2:10

Use C++ already. The last redesign focused on these issues.

Name: Anonymous 2012-04-16 3:43

C and threading?

That's a good one.

Name: Anonymous 2012-04-16 6:33

Multithreading is a process that generates fractal screws.

Name: Anonymous 2012-04-16 7:52

Learn multithreading in C: you have one problem
Using multithreading in C: now you have two problSegmentation fault

Name: Anonymous 2012-04-16 8:23

Multithreading considered harmful. Use whole processes and IPC.

Name: Anonymous 2012-04-16 9:27

>>10
[Citation Needed]

Name: Anonymous 2012-04-16 9:47

>>11
Back to Reddit, please.

Name: Anonymous 2012-04-16 10:41

>>12
I will when I satisfy my query for that citation.

Name: Anonymous 2012-04-16 11:06

Check out openmp, and then check out pthreads.

Name: Anonymous 2012-04-16 11:09

Check out pthreads, and then check out my binary quads.

>>10
Go back to playing with your toy functional languages.

Name: >>10 2012-04-16 11:13

>>13
Then pose it like a grown-up.

>>15
Go back to playing with your toy functional languages.
My advice applied to C and only to C. I don't care what other languages do.

Name: Anonymous 2012-04-16 11:20

SDL_Thread

Name: Anonymous 2012-04-16 14:35

>>10
Being a massive retard considered harmful. Use a gun directed to your head and pull the trigger.

Name: Anonymous 2012-04-16 14:42

>>18
Back to /b/, please.

Name: Anonymous 2012-04-16 14:47

Some fag on /g/ said that the C11 Threading Option pretty much just canonises pthreads.

Is that correct?

Name: Anonymous 2012-04-16 14:53

I understand and I will use pthreads.

But I can't still understand how a fucking semaphore works.

Name: Anonymous 2012-04-16 15:06

>>21
But I can't still understand how a fucking semaphore works.
You're fucking retarded then.

Name: Anonymous 2012-04-16 15:07

>>21
That sounds like it's going to end well.
Seriously, just use processes and do IPC through 9P or something.

Name: Anonymous 2012-04-16 15:11

>>20
It's based on the Dinkumware thread implementation.

Name: Fuck off, !Ep8pui8Vw2 2012-04-16 15:30

>>19
fuck off and die you cock sucking faggot

Name: Anonymous 2012-04-16 16:27

>>22
If it's so easy, explain it.

Name: Anonymous 2012-04-16 16:36

>>10
This is a good way to add unnecessary layers of complexity on top of the already difficult problems with concurrency.  It's also a good way to solve none of those problems.

Name: Fuck off, !Ep8pui8Vw2 2012-04-16 16:37

>>5
>glib
fuck off and die you cock sucking faggot

Name: Anonymous 2012-04-16 16:51

>>26
Sorry but I don't really want to waste time explaining basic computer science to retards.

Do your own homework you fucking moron.

Name: Anonymous 2012-04-16 17:11

>>3
Thanks, fine sir.

Name: bampu pantsu 2012-05-29 4:26

bampu pantsu

Don't change these.
Name: Email:
Entire Thread Thread List