OpenMP or PThreads?
1
Name:
Anonymous
2012-07-13 1:32
OpenMP or PThreads?
2
Name:
Anonymous
2012-07-13 1:48
node.js
3
Name:
>
2012-07-13 1:48
Yes.
4
Name:
Anonymous
2012-07-13 1:50
PPL jk lol
5
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?
6
Name:
Anonymous
2012-07-13 1:57
>>5
Hint: C++11 still uses the pthreads library.
7
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.
8
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)
}
}
9
Name:
Anonymous
2012-07-13 9:58
>>8
| Pig disgusting K&R-esque shit.
puking_matsudoki.png
10
Name:
Anonymous
2012-07-13 10:41
>>9
le reaction image.png
11
Name:
Anonymous
2012-07-13 10:46
>>9
back to the imageboards, ``please''
!
12
Name:
Anonymous
2012-07-13 11:07
>>11
lol epic fail
u mad bro?
13
Name:
Anonymous
2012-07-13 11:24
>>8
Go is a shining example of worse is better
14
Name:
Anonymous
2012-07-13 13:28
>13!
Thanks for making me really the jwz piece
15
Name:
Anonymous
2012-07-13 20:01
>>9
``
Madotsuki '', illiterate baka
!
16
Name:
Anonymous
2012-07-13 21:53
OpenCL > * > OpenMP > * > C11/C++11/pthreads
17
Name:
Anonymous
2012-07-13 23:04
OpenCL > * > OpenMP > * > C11/C++11/pthreads > OpenCL
18
Name:
Anonymous
2012-07-14 1:36
Goes to show you. If it ain't Lisp, it's crap!
19
Name:
Anonymous
2012-07-14 19:17
If it's Lisp, it's shit.
20
Name:
Anonymous
2012-07-14 19:35
If it ain't shit, it's crap.
21
Name:
Anonymous
2012-07-15 1:52
Rules:
If it ain't Lisp, it's crap.
Lisp is shit.
22
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
█░░░░░░░░░░░░░░░░▀░░░▐░░░░░▐▌
▐▌░░░░░░░░░▐██▀█▄░░░░░░█▀█░▐▌
░█░░░░░░░░░░░▀▀▀░░░░░░▀▀▀▀░▀▄
░▐▌░░░░▄░░░░░░░░░░░░░▌░░░░░░█
░░▐▌░░▐░░░░░░░░░░░░░░▀▄░░░░░█
░░░█░░░▌░░░░░░░░▐▀░░░░▄▀░░░▐▌
░░░▐▌░░▀▄░░░░░░░░▀░▀░▀▀░░░▄▀░
░░░▐▌░░▐▀▄░░░░░░░░░░░░░░░░█░░
░░░▐▌░░░▌░▀▄░░░░▀▀▀▀▀▀░░░█░░░
░░░█░░░▀░░░░▀▄░░░░░░░░░░▄▀░░░
░░▐▌░░░░░░░░░░▀▄░░░░░░▄▀░░░░░
░▄▀░░░▄▀░░░░░░░░▀▀▀▀█▀░░░░░░░