Re: Threading in linux

2007-04-24 Thread John Aspinall
Rick Brown wrote: Could you hint upon the kernel features required for NPTL? May be a link? I know very little about this, but by coincidence (the application program I work on got a nice bugfix because of this) I can tell you one kernel difference on x86_64 kernels that support NPTL. For

Re: Threading in linux

2007-04-24 Thread Mike Frysinger
On 4/24/07, Rick Brown <[EMAIL PROTECTED]> wrote: > > NPTL on 2.4? > > this can be done only if you backport the features from 2.6 that were > added in order to make NPTL possible ... redhat has done this, but > really it's just a waste of time ... 2.4 is dead :P Could you hint upon the kernel f

Re: Floating point in kernel

2007-04-24 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 24, 2007 at 02:07:38PM +0530, Daniel Rodrick wrote: > I've always read that although it isn't completely forbidden, but > kernel code shouldn't use floating point arithmetic. It is not > recommended, but surely looks possible. > > So just

Re: PCI config space doubt

2007-04-24 Thread Rajat Jain
On 4/24/07, Erik Mouw <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 24, 2007 at 03:20:01PM +0530, Rajat Jain wrote: > >On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote: > >> Does Linux assign the resources to PCI devices? Or is it done by PCI > >>

Re: Threading in linux

2007-04-24 Thread Rick Brown
> NPTL on 2.4? this can be done only if you backport the features from 2.6 that were added in order to make NPTL possible ... redhat has done this, but really it's just a waste of time ... 2.4 is dead :P Could you hint upon the kernel features required for NPTL? May be a link? > pthreads on

Re: PCI config space doubt

2007-04-24 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 24, 2007 at 03:20:01PM +0530, Rajat Jain wrote: > >On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote: > >> Does Linux assign the resources to PCI devices? Or is it done by PCI > >> firmware? > > > >Yes. > > I'm sorry but I could n

Re: Threading in linux

2007-04-24 Thread Mike Frysinger
On 4/24/07, Rick Brown <[EMAIL PROTECTED]> wrote: So as long as relevant system calls do not change, it should be possible to run any threading library on any kernel? this statement is correct ... not that i see the point of it NPTL on 2.4? this can be done only if you backport the features

Re: Threading in linux

2007-04-24 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 24, 2007 at 12:08:40PM +0530, Rick Brown wrote: > I read that the kernel does not differentiate between threads and > processes. Correct. > That means, we can say that on a Linux system, the > threading is purely provided by user level t

Re: PCI config space doubt

2007-04-24 Thread Rajat Jain
On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote: > Does Linux assign the resources to PCI devices? Or is it done by PCI > firmware? Yes. Erik Hi Erik, I'm sorry but I could not understand your "Yes" very well ... so Which one of the following assigns the resources to PCI devices?

Re: PCI config space doubt

2007-04-24 Thread Erik Mouw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 24, 2007 at 12:03:32PM +0530, Rajat Jain wrote: > Does Linux assign the resources to PCI devices? Or is it done by PCI > firmware? Yes. Erik - -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Ma

Floating point in kernel

2007-04-24 Thread Daniel Rodrick
Hello, I've always read that although it isn't completely forbidden, but kernel code shouldn't use floating point arithmetic. It is not recommended, but surely looks possible. So just for curosity purposes (and without getting into the debate of "You shouldn't be doing this..."), can some one po

Re: Threading in linux

2007-04-24 Thread Rick Brown
On 4/24/07, Amol Lad <[EMAIL PROTECTED]> wrote: On Tue, 2007-04-24 at 12:08 +0530, Rick Brown wrote: > Hi list, > > I read that the kernel does not differentiate between threads and > processes. Only for scheduling. Kernel maintains thread level data structures to enable say fast context switch,

Re: Threading in linux

2007-04-24 Thread Amol Lad
On Tue, 2007-04-24 at 12:08 +0530, Rick Brown wrote: > Hi list, > > I read that the kernel does not differentiate between threads and > processes. Only for scheduling. Kernel maintains thread level data structures to enable say fast context switch, mm sharing etc > > So as long as relevant sys

Re: Threading in linux

2007-04-24 Thread pradeep singh
On 4/24/07, Rick Brown <[EMAIL PROTECTED]> wrote: Hi list, I read that the kernel does not differentiate between threads and processes. That means, we can say that on a Linux system, the threading is purely provided by user level thread libraries, right? So as long as relevant system calls do n