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

Pages: 1-

OpenMP or PThreads?

Name: Anonymous 2012-07-13 1:32

OpenMP or PThreads?

Name: Anonymous 2012-07-13 1:48

node.js

Name: > 2012-07-13 1:48

Yes.

Name: Anonymous 2012-07-13 1:50

PPL jk lol

Name: Anonymous 2012-07-13 1:52

Serious question:

Why does anyone need more than the standard threading functionality in C11 or C++11? Why do you need this external shit?

Name: Anonymous 2012-07-13 1:57

>>5
Hint: C++11 still uses the pthreads library.

Name: Anonymous 2012-07-13 2:12

>>5
*11 are relatively new standards. Most compilers don't even fully support C99 yet.

http://en.wikipedia.org/wiki/C99#Implementations

Convincing people to modify their code to start using new language features isn't going to work till compiler support matures.

People have been using Pthreads and OpenMP, both of which are mature and robust, for a long time quite successfully.

Name: Anonymous 2012-07-13 9:45

Go (golang.org) has amazing multithreading support. Give Go a look if you get a chance, it's a beautiful language.


package main

import (
    "fmt"
    "math/rand"
    "time"
)

const (
    Threads = 10
)

func uselessFunction(c chan int) {
    c <- rand.Int() % 100
}

func main() {
    //A Channel is a way to send messages across threads
    c := make(chan int)

    rand.Seed(time.Now().Unix())

    //The go keyword spawns a given function in a new thread
    for i := 0; i < Threads; i++ {
        go uselessFunction(c)
    }

    //The <- operator means recieve, reading from a channel blocks
    //until data is sent.
    for i := 0; i < Threads; i++ {
        fmt.Println(<-c)
    }
}

Name: Anonymous 2012-07-13 9:58

>>8
| Pig disgusting K&R-esque shit.
puking_matsudoki.png

Name: Anonymous 2012-07-13 10:41

>>9
le reaction image.png

Name: Anonymous 2012-07-13 10:46

>>9
back to the imageboards, ``please''!

Name: Anonymous 2012-07-13 11:07

>>11
lol epic fail
u mad bro?

Name: Anonymous 2012-07-13 11:24

>>8
Go is a shining example of worse is better

Name: Anonymous 2012-07-13 13:28

>13!
Thanks for making me really the jwz piece

Name: Anonymous 2012-07-13 20:01

>>9
``Madotsuki'', illiterate baka!

Name: Anonymous 2012-07-13 21:53

OpenCL > * > OpenMP > * > C11/C++11/pthreads

Name: Anonymous 2012-07-13 23:04

OpenCL > * > OpenMP > * > C11/C++11/pthreads > OpenCL

Name: Anonymous 2012-07-14 1:36

Goes to show you. If it ain't Lisp, it's crap!

Name: Anonymous 2012-07-14 19:17

If it's Lisp, it's shit.

Name: Anonymous 2012-07-14 19:35

If it ain't shit, it's crap.

Name: Anonymous 2012-07-15 1:52

Rules:
If it ain't Lisp, it's crap.
Lisp is shit.

Name: Anonymous 2013-11-30 8:03

░░░░░░░▄▀▀▀▀▀▀▀▀▀▀▄▄░░░░░░░░░
░░░░▄▀▀░░░░░░░░░░░░░▀▄░░░░░░░
░░▄▀░░░░░░░░░░░░░░░░░░▀▄░░░░░ YOU HAVE BEEN VISITED BY
░░█░░░░░░░░░░░░░░░░░░░░░▀▄░░░ LE 'FEEL OF NO GF
░▐▌░░░░░░░░▄▄▄▄▄▄▄░░░░░░░▐▌░░
░█░░░░░░░░░░░▄▄▄▄░░▀▀▀▀▀░░█░░ A qt 3.14 gf will come to you,
▐▌░░░░░░░▀▀▀▀░░░░░▀▀▀▀▀░░░▐▌░ but ONLY if you post a
█░░░░░░░░░▄▄▀▀▀▀▀░░░░▀▀▀▀▄░█░ `>tfw no GF on this thread
█░░░░░░░░░░░░░░░░▀░░░▐░░░░░▐▌
▐▌░░░░░░░░░▐██▀█▄░░░░░░█▀█░▐▌
░█░░░░░░░░░░░▀▀▀░░░░░░▀▀▀▀░▀▄
░▐▌░░░░▄░░░░░░░░░░░░░▌░░░░░░█
░░▐▌░░▐░░░░░░░░░░░░░░▀▄░░░░░█
░░░█░░░▌░░░░░░░░▐▀░░░░▄▀░░░▐▌
░░░▐▌░░▀▄░░░░░░░░▀░▀░▀▀░░░▄▀░
░░░▐▌░░▐▀▄░░░░░░░░░░░░░░░░█░░
░░░▐▌░░░▌░▀▄░░░░▀▀▀▀▀▀░░░█░░░
░░░█░░░▀░░░░▀▄░░░░░░░░░░▄▀░░░
░░▐▌░░░░░░░░░░▀▄░░░░░░▄▀░░░░░
░▄▀░░░▄▀░░░░░░░░▀▀▀▀█▀░░░░░░░

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