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

Pages: 1-

Threads on linux

Name: Anonymous 2012-12-10 12:22

How are threads actually implemented in the linux kernel?
I read somewhere that before kernel 2.6, the clone system call where used to implement them. But how do you do it nowdays?

Name: Anonymous 2012-12-10 12:38

Hum it should be exactly like anywhere else, allocating some stack, copying some things, add it to a queue. Do you want the parts of kernel code you need to read about it?

Name: Anonymous 2012-12-10 12:40

2 Stacks and some heap for usermode, one stack and some paged memory for kernel threads>>2

Name: VIPPER 2012-12-10 13:14

>>1
man pthreads

Name: Anonymous 2012-12-10 14:04

>>4
Pthreads is a library wrapping system calls and providing convenient data structures, but i was thinking more like, how you do it in the kernel.

Name: Anonymous 2012-12-10 14:09

Name: Anonymous 2012-12-10 15:26

>>2
Did you drop out of college or are you still a freshman?

Name: Anonymous 2012-12-10 16:12

LEWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>LE EGIN
>MFW

Name: Anonymous 2012-12-10 16:23

postan in a linux thread.

Name: Anonymous 2012-12-10 16:25

>>7
Neither

Name: Anonymous 2012-12-10 17:09

>>8

Fuck off.  This is the only thread on the front page that's even related to programming.

Name: Anonymous 2012-12-10 17:09

>>8

Fuck off.  This is the only thread on the front page that's even related to programming.

Name: Anonymous 2012-12-10 17:09

>>8

Fuck off.  This is the only thread on the front page that's even related to programming.

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