Re: Kernel threads inherit CPU affinity from random sibling

2012-02-24 Thread Attilio Rao
2012/2/24, Eugene Grosbein egrosb...@rdtc.ru: 28.01.2012 20:22, Attilio Rao пишет: 2012/1/28 Ryan Stone ryst...@gmail.com: On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not correct as you cannot

Re: Kernel threads inherit CPU affinity from random sibling

2012-02-24 Thread Eugene Grosbein
24.02.2012 18:45, Attilio Rao пишет: I have the pathological test-case for it: http://www.freebsd.org/cgi/query-pr.cgi?pr=165444 A fix has been committed as r230984, it should apply to STABLE_9/8 too, can you try it? Attilio I will try but I already run my patch for netisr, so it

Re: Kernel threads inherit CPU affinity from random sibling

2012-02-24 Thread Attilio Rao
2012/2/24, Eugene Grosbein eu...@grosbein.pp.ru: 24.02.2012 18:45, Attilio Rao пишет: I have the pathological test-case for it: http://www.freebsd.org/cgi/query-pr.cgi?pr=165444 A fix has been committed as r230984, it should apply to STABLE_9/8 too, can you try it? Attilio I will try

Re: Kernel threads inherit CPU affinity from random sibling

2012-02-24 Thread Eugene Grosbein
28.01.2012 20:22, Attilio Rao пишет: 2012/1/28 Ryan Stone ryst...@gmail.com: On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not correct as you cannot call cpuset_setthread() with thread_lock held.

Re: Kernel threads inherit CPU affinity from random sibling

2012-02-24 Thread Eugene Grosbein
24.02.2012 19:05, Attilio Rao пишет: 2012/2/24, Eugene Grosbein eu...@grosbein.pp.ru: 24.02.2012 18:45, Attilio Rao пишет: I have the pathological test-case for it: http://www.freebsd.org/cgi/query-pr.cgi?pr=165444 A fix has been committed as r230984, it should apply to STABLE_9/8 too,

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-30 Thread Ryan Stone
On Sat, Jan 28, 2012 at 8:22 AM, Attilio Rao atti...@freebsd.org wrote: Do you have a pathological test-case for it? Are you going to test the patch? Thanks, Attilio I tested the patch last night. Previously I was able to see a softclock thread preempted for over 1ms on machine where 4/8

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-29 Thread Peter Holm
On Sat, Jan 28, 2012 at 02:39:17PM +0100, Attilio Rao wrote: 2012/1/28 Attilio Rao atti...@freebsd.org: 2012/1/28 Ryan Stone ryst...@gmail.com: On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-28 Thread Attilio Rao
2012/1/28 Ryan Stone ryst...@gmail.com: On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not correct as you cannot call cpuset_setthread() with thread_lock held. Whoops!  I actually discovered that

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-28 Thread Attilio Rao
2012/1/28 Attilio Rao atti...@freebsd.org: 2012/1/28 Ryan Stone ryst...@gmail.com: On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not correct as you cannot call cpuset_setthread() with thread_lock

Kernel threads inherit CPU affinity from random sibling

2012-01-27 Thread Ryan Stone
). Inheriting affinity is arguably correct for userland threads (at the very least, an explicit design decision to implement inheritance was clearly implemented). However for kernel threads, this behaviour leads to bizarre results that clearly weren't intended. For example, I added a printf

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-27 Thread Attilio Rao
thread spawned in that kernel process).  Inheriting affinity is arguably correct for userland threads (at the very least, an explicit design decision to implement inheritance was clearly implemented).  However for kernel threads, this behaviour leads to bizarre results that clearly weren't

Re: Kernel threads inherit CPU affinity from random sibling

2012-01-27 Thread Ryan Stone
On Fri, Jan 27, 2012 at 10:41 PM, Attilio Rao atti...@freebsd.org wrote: I think what you found out is very sensitive. However, the patch is not correct as you cannot call cpuset_setthread() with thread_lock held. Whoops! I actually discovered that for myself and had already fixed it, but

Re: Ktrace'ing kernel threads

2010-02-17 Thread John Baldwin
On Monday 15 February 2010 6:21:40 am Shrikanth Kamath wrote: Can ktrace trace another kernel thread which has roughly the semantics as below, right now it does not hit any of the designated interesting points that ktrace is built for, but what if I could define those, will ktrace still allow

Ktrace'ing kernel threads

2010-02-15 Thread Shrikanth Kamath
Can ktrace trace another kernel thread which has roughly the semantics as below, right now it does not hit any of the designated interesting points that ktrace is built for, but what if I could define those, will ktrace still allow tracing another kernel thread? thread(client_info) { ...

Re: Ktrace'ing kernel threads

2010-02-15 Thread Fernando Gleiser
- Original Message From: Shrikanth Kamath shrikant...@gmail.com To: freebsd-hackers@freebsd.org Sent: Mon, February 15, 2010 8:21:40 AM Subject: Ktrace'ing kernel threads Can ktrace trace another kernel thread which has roughly the semantics as below, right now it does not hit

Re: Kernel threads libc

2005-02-22 Thread Dan Nelson
In the last episode (Feb 22), Dmitry Agaphonov said: I'm forced to implement kernel threads in application not via LinuxThreads library (because it doesn't compile on FreeBSD 4.10 with gcc-3.4.4, too much errors while processing /usr/src code), but using rfork_thread(3). Why not build

Kernel threads libc

2005-02-21 Thread Dmitry Agaphonov
Hello all, I'm forced to implement kernel threads in application not via LinuxThreads library (because it doesn't compile on FreeBSD 4.10 with gcc-3.4.4, too much errors while processing /usr/src code), but using rfork_thread(3). And the main question I currently stuck on is which libc functions

Re: Kernel Threads

2004-02-06 Thread Joseph Koshy
Sridhar, I heard that even Interrupts run under kernel threads context See ithread(9). How can a kernel thread yield CPU when it detects it is idle? kthread_suspend(), or yield(). See kthread(9), mi_switch(9). Let me also answer your questions(s) at another level: I have found

Kernel Threads

2004-02-03 Thread Sridhar Chellappa
Some questions on kernel threads under BSD : Is there a way to tie a kernel thread to a specific CPU? Is it also possible to move a kernel thread from one CPU to another ? Is there a way to make a kernel thread non-Pre-emptible ? Is yes how do we do it? I heard that even Interrupts run under

Re: kernel threads

2004-01-29 Thread Robert Watson
this for a while -- clustering the kernel threads into a smaller number of kernel processes or a single kernel process. This is the approach Darwin takes as well, FWIW -- they have a kernel_task in which all the various kernel threads hang out, which avoids the overhead of full processes, as well

Re: kernel threads

2004-01-28 Thread Unix Shepherd
Actually, i was fiddling around with the kernel splash screen code in order to make it 'animated'... such as the BeOS splash screen. I first used the syscons screen timer to make the splash screen change but programming this way is quite ugly, and thought about creating a new thread within the

Re: kernel threads

2004-01-28 Thread Julian Elischer
On Wed, 28 Jan 2004, Unix Shepherd wrote: Actually, i was fiddling around with the kernel splash screen code in order to make it 'animated'... such as the BeOS splash screen. I first used the syscons screen timer to make the splash screen change but programming this way is quite ugly, and

kernel threads

2004-01-27 Thread Renaud Molla Wanadoo
Hi everybody. I'm trying to use the kthread library under 5.2-RELEASE but can't compile my program (which actually only tries to create a thread). I've read that there is now KSE to create kernel threads, but i am wondering if it could be used within the kernel code. Regards

Re: kernel threads

2004-01-27 Thread Robert Watson
On Tue, 27 Jan 2004, Renaud Molla Wanadoo wrote: I'm trying to use the kthread library under 5.2-RELEASE but can't compile my program (which actually only tries to create a thread). I've read that there is now KSE to create kernel threads, but i am wondering if it could be used within

kernel threads and printf locking question

2004-01-10 Thread Daan Vreeken [PA4DAN]
Hi, I am writing a kernel module in which I have created a kernel thread with kthread_create. For debugging I have added a couple of printf's in the thread-routine. Running the module on a single-proc system works fine, but when running it on one of my SMP machines the console freezes after a

kernel threads

2001-10-25 Thread Eugene L. Vorokov
Hello, does FreeBSD currently have something similar to linux's kernel_thread() ? Or is it what KSE intends to implement ? Can I somehow run independent kernel thread, which will, for instance, check some flag that I set inside interrupt handler and do some job that can't be done in the

Re: kernel threads

2001-10-25 Thread Alfred Perlstein
* Eugene L. Vorokov [EMAIL PROTECTED] [011025 03:03] wrote: Hello, does FreeBSD currently have something similar to linux's kernel_thread() ? Or is it what KSE intends to implement ? Can I somehow run independent kernel thread, which will, for instance, check some flag that I set inside

RE: kernel threads

2001-10-25 Thread John Baldwin
On 25-Oct-01 Eugene L. Vorokov wrote: Hello, does FreeBSD currently have something similar to linux's kernel_thread() ? Or is it what KSE intends to implement ? Can I somehow run independent kernel thread, which will, for instance, check some flag that I set inside interrupt handler and

Re: kernel threads

2001-10-25 Thread Daniel Eischen
On Thu, 25 Oct 2001, Eugene L. Vorokov wrote: Hello, does FreeBSD currently have something similar to linux's kernel_thread() ? Or is it what KSE intends to implement ? Can I somehow run independent kernel thread, which will, for instance, check some flag that I set inside interrupt

kernel threads

2001-01-04 Thread Marc Tardif
Are threads on FreeBSD 4.x implemented at the kernel level? If so, since when (I remember 2.x used MIT-threads, so I'm guessing at least since 3.x)? How can I see for myself that threads are really implemented at the kernel level? I looked around in /usr/src/sys/kern, but couldn't find

Re: kernel threads

2001-01-04 Thread Kenneth Wayne Culver
implemented at the kernel level? I looked around in /usr/src/sys/kern, but couldn't find anything relating to threads there. They aren't really implemented at the kernel level yet, but something like kernel threads will be in 5.x when it comes out. If you really need kernel threads in FreeBSD

RE: kernel threads

2001-01-04 Thread John Baldwin
On 04-Jan-01 Marc Tardif wrote: Are threads on FreeBSD 4.x implemented at the kernel level? No, they probably will not be until 6.0. If so, since when (I remember 2.x used MIT-threads, so I'm guessing at least since 3.x)? How can I see for myself that threads are really implemented at

Can kernel threads be implemented using rfork?

2000-12-12 Thread Satyajeet Seth
Hi Is it possible to implement threads in FreeBSD 4.0 kernel using the rfork system call? If yes, could you give an example? I tried to get the following piece of code to work without success. #include unistd.h main() { if (rfork( RFPROC | RFNOWAIT | RFMEM | RFSIGSHARE ) 0) {

Re: Can kernel threads be implemented using rfork?

2000-12-12 Thread Alfred Perlstein
* Satyajeet Seth [EMAIL PROTECTED] [001212 02:21] wrote: Hi Is it possible to implement threads in FreeBSD 4.0 kernel using the rfork system call? If yes, could you give an example? I tried to get the following piece of code to work without success. #include unistd.h main() {

does pthread package support kernel threads ?

2000-11-29 Thread Mohit Aron
Hi, FreeBSD provides the pthread package (available through the use of the option -pthread to gcc). Does this package use user-level threads or does it use kernel threads ? I believe the kernel supports multiple threads in the same address space using the rfork() system call. - Mohit

Re: does pthread package support kernel threads ?

2000-11-29 Thread Alfred Perlstein
* Mohit Aron [EMAIL PROTECTED] [001129 01:32] wrote: Hi, FreeBSD provides the pthread package (available through the use of the option -pthread to gcc). Does this package use user-level threads or does it use kernel threads ? I believe the kernel supports multiple threads in the same

Re: does pthread package support kernel threads ?

2000-11-29 Thread FengYue
On Wed, 29 Nov 2000, Mohit Aron wrote: -Hi, - FreeBSD provides the pthread package (available through the -use of the option -pthread to gcc). Does this package use user-level -threads or does it use kernel threads ? I believe the kernel supports -multiple threads in the same address space

Re: KLD, kernel threads, zone allocator

2000-07-21 Thread Zhihui Zhang
On Mon, 17 Jul 2000, Zhihui Zhang wrote: I am writing a KLD that gives me kernel fault each time I run 'ps' command after 'make unload'. The KLD has a system call to create several kernel threads by calling kthread_create(). During unload, I set flags to each threads so

KLD, kernel threads, zone allocator

2000-07-17 Thread Zhihui Zhang
I am writing a KLD that gives me kernel fault each time I run 'ps' command after 'make unload'. The KLD has a system call to create several kernel threads by calling kthread_create(). During unload, I set flags to each threads so that they will call exit1() upon wakeup (sleep on a timeout

Kernel threads (RE: alphaworks 1.3 linux port)

2000-05-26 Thread Andrzej Bialecki
(I CC:'d to -hackers, perhaps someone can enlighten us wrt. the availability of kernel threads..) On Fri, 26 May 2000, Koster, K.J. wrote: Has anyone had a look at this? Reports are that it's a big improvement over the BDown stuff. Anyone had a play yet? 1.3 is a big improvement

Removing zombie kernel threads

2000-03-05 Thread Zhihui Zhang
I have created several kernel threads that can die after being idle for a while. I did this by copying the kthread_create() funtion from CURRENT over to FreeBSD 3.3-Release. Is there a way to remove the zombie threads after they die or prevent them from creating? Any potential problems in trying

Re: AIO was Re: Kernel threads

2000-01-10 Thread Arjan de Vet
Christopher Sedore wrote: On Thu, 6 Jan 2000, Arjan de Vet wrote: Jordan K. Hubbard wrote: This is very interesting data and I was just wondering about the actual state of functionality in our AIO code just the other day, oddly enough. Does anyone have a PR# for the mentioned patches?

Re: AIO was Re: Kernel threads

2000-01-10 Thread Jason Evans
On Mon, Jan 10, 2000 at 10:48:29PM +0100, Arjan de Vet wrote: Christopher Sedore wrote: On Thu, 6 Jan 2000, Arjan de Vet wrote: Jordan K. Hubbard wrote: This is very interesting data and I was just wondering about the actual state of functionality in our AIO code just the other

Re: AIO was Re: Kernel threads

2000-01-06 Thread Christopher Sedore
On Thu, 6 Jan 2000, Arjan de Vet wrote: Jordan K. Hubbard wrote: This is very interesting data and I was just wondering about the actual state of functionality in our AIO code just the other day, oddly enough. Does anyone have a PR# for the mentioned patches? kern/12053 A Dec 16

Re: AIO was Re: Kernel threads

2000-01-05 Thread John W. DeBoskey
With respect to AIO... we run a data server which multiplexes on the select() function, and uses AIO to do all it's I/O. This has been a very stable system. system : 4.0-19990827-SNAP start time : 1999/12/24 11:14:44 up time (days hh:mm:ss): 12 13:32:53

Re: AIO was Re: Kernel threads

2000-01-05 Thread Jordan K. Hubbard
This is very interesting data and I was just wondering about the actual state of functionality in our AIO code just the other day, oddly enough. Does anyone have a PR# for the mentioned patches? - Jordan To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the

Re: Kernel threads

2000-01-03 Thread Scott Hess
processes sharing the same virtual memory space, and are referred to as kernel threads. For compute bound activities you want kernel threads to spread the computation over multiple processors. For I/O bound activities you want user level threads so you can minimize the context switch overhead. As

Re: AIO was Re: Kernel threads

2000-01-03 Thread Arjan de Vet
In article [EMAIL PROTECTED] you write: The best fix I've thought of thus far (other than async I/O, which I understand isn't ready for prime time) would be to have a number of kernel Speaking of AIO, which I would really like to use if possible, how actively maintained is it? The copyright

Re: Kernel threads

1999-12-28 Thread Steffen Merkel
le(1); ? I thougt that this while statement would get executed forever (until I press ^C). On Linux they are processes sharing the same virtual memory space, and are referred to as kernel threads. For compute bound activities you want kernel threads to spread the computation over multiple

Re: Kernel threads

1999-12-28 Thread Steffen Merkel
Hello, From: Kip Macy [EMAIL PROTECTED] To: Richard Seaman, Jr. [EMAIL PROTECTED] They may be preemptive, but I saw a lot of instances with Lyris where one thread could easily monopolize processor time at the expense of all others and I had to add sleeps in at places. Does this mean I've

Re: Kernel threads

1999-12-28 Thread Richard Seaman, Jr.
On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: Sorry, but I'm learning C for only some weeks now. Why does the main thread complete if I insert a while(1); ? I thougt that this while statement would get executed forever (until I press ^C). You're right, of course. My brain

Re: Kernel threads

1999-12-28 Thread Richard Seaman, Jr.
On Tue, Dec 28, 1999 at 08:30:08AM -0600, Richard Seaman, Jr. wrote: On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: Sorry, but I'm learning C for only some weeks now. Why does the main thread complete if I insert a while(1); ? I thougt that this while statement would get

Re: Kernel threads

1999-12-28 Thread Kip Macy
They may be preemptive, but I saw a lot of instances with Lyris where one thread could easily monopolize processor time at the expense of all others and I had to add sleeps in at places. Does this mean I've got to add sleeps in my threads to let other threads get cpu time? Is there no

Re: Kernel threads

1999-12-28 Thread Kip Macy
On Tue, 28 Dec 1999, Richard Seaman, Jr. wrote: On Tue, Dec 28, 1999 at 08:30:08AM -0600, Richard Seaman, Jr. wrote: On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: Sorry, but I'm learning C for only some weeks now. Why does the main thread complete if I insert a

Re: Kernel threads

1999-12-28 Thread Kip Macy
How can I then tell FreeBSD that my threads shall be kernel threads? Steffen The only way I know of to do that is to use LinuxThreads which, because of my negative experience on Linux with threads, I have not tried. Try the archives. -Kip

Re: Kernel threads

1999-12-28 Thread Mike Smith
How can I then tell FreeBSD that my threads shall be kernel threads? Steffen The only way I know of to do that is to use LinuxThreads which, because of my negative experience on Linux with threads, I have not tried. Try the archives. Kip, if you have the time and energy, it would

Re: Kernel threads

1999-12-27 Thread Kip Macy
mory space, and are referred to as kernel threads. For compute bound activities you want kernel threads to spread the computation over multiple processors. For I/O bound activities you want user level threads so you can minimize the context switch overhead. I am sure Julian and the others have somethin

Re: Kernel threads

1999-12-27 Thread Richard Seaman, Jr.
st a while() the main thread completes before the second thread gets its time slice. As noted in a previous message, pthread_join() is intended for this kind of synchronization. On Linux they are processes sharing the same virtual memory space, and are referred to as kernel threads. For com

Re: Kernel threads

1999-12-27 Thread Kip Macy
I have not played with it for several months, so this may no longer be the case. -Kip Is this recently, or a while ago? FreeBSD user threads used to use SIGVTALRM for its pre-emption signal. This didn't count time in syscalls. So, if you had a syscall (eg

Re: Kernel threads

1999-12-27 Thread Daniel Eischen
On Mon, 27 Dec 1999, Richard Seaman, Jr. wrote: On Mon, Dec 27, 1999 at 10:30:54AM -0800, Kip Macy wrote: They may be preemptive, but I saw a lot of instances with Lyris where one thread could easily monopolize processor time at the expense of all others and I had to add sleeps in at

restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Warner Losh
I'd like to bring a kernel thread implementation, ported from NetBDS by the newconfig project, into the kernel. Who would like to review things before they go into the tree? I can see many benefits for having this in the tree, but very little downside. This should allow people to more easily

Re: restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Matthew Dillon
? : :julian I think we desparately need a kernel threads implementation. *Any* implementation, so we can start messing around with it! Even if it isn't the one we eventually choose. Once we have something we can add interrupt-thread support to it and then move some of the more

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Anonymous
On 28-Jun-99 Matthew Dillon wrote: I think we desparately need a kernel threads implementation. *Any* implementation, so we can start messing around with it! Even if it isn't the one we eventually choose. I don't suppose someone could post an explanation of how kernel

Re: restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Anonymous
In message [EMAIL PROTECTED] Julian Elischer writes: : now this is threads within the kernel, and not kernel support for user : threads right? Yes. That's right. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Anonymous
In message [EMAIL PROTECTED] "Daniel J. O'Connor" writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) Looks like it just does a fork like thing so it can do context switches... Warner To Unsubscribe: send mail to [EMAIL

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Anonymous
On Mon, 28 Jun 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Daniel J. O'Connor" writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) Looks like it just does a fork like thing so it can do context switches...

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Anonymous
Warner Losh wrote: In message [EMAIL PROTECTED] "Daniel J. O'Connor" writ es: : I don't suppose someone could post an explanation of how kernel threads wor k : could they? :) Looks like it just does a fork like thing so it can do context switches... Warner When I l

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Anonymous
In message [EMAIL PROTECTED] "Daniel J. O'Connor" writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) In a nutshell, it appears to basically do an rfork. It then becomes like any other process that is interrupted in the kernel.

restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Warner Losh
I'd like to bring a kernel thread implementation, ported from NetBDS by the newconfig project, into the kernel. Who would like to review things before they go into the tree? I can see many benefits for having this in the tree, but very little downside. This should allow people to more easily

Re: restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Julian Elischer
please yes.. eventually we'll be using it to fire off a thread for every interrupt source if we go the BSDI way. (as dicussed with various people at USENIX) I was actually thinking about this today... now this is threads within the kernel, and not kernel support for user threads right?

Re: restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Matthew Dillon
? : :julian I think we desparately need a kernel threads implementation. *Any* implementation, so we can start messing around with it! Even if it isn't the one we eventually choose. Once we have something we can add interrupt-thread support to it and then move some of the more

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Daniel J. O'Connor
On 28-Jun-99 Matthew Dillon wrote: I think we desparately need a kernel threads implementation. *Any* implementation, so we can start messing around with it! Even if it isn't the one we eventually choose. I don't suppose someone could post an explanation of how kernel

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Matthew Dillon
: :I don't suppose someone could post an explanation of how kernel threads work :could they? :) : :I sort of grasp the idea but I'm wondering what passes for context switches and :stuff like that.. What does the switching between threads etc? Or am I :completely off track? : :--- :Daniel O'Connor

Re: restricted kernel threads implementation from NetBSD via newconfig

1999-06-28 Thread Warner Losh
In message pine.bsf.3.95.990627233124.8298o-100...@current1.whistle.com Julian Elischer writes: : now this is threads within the kernel, and not kernel support for user : threads right? Yes. That's right. Warner To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Warner Losh
In message xfmail.990628173909.dar...@dons.net.au Daniel J. O'Connor writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) Looks like it just does a fork like thing so it can do context switches... Warner To Unsubscribe: send mail to majord

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Julian Elischer
On Mon, 28 Jun 1999, Warner Losh wrote: In message xfmail.990628173909.dar...@dons.net.au Daniel J. O'Connor writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) Looks like it just does a fork like thing so it can do context switches

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Peter Wemm
Warner Losh wrote: In message xfmail.990628173909.dar...@dons.net.au Daniel J. O'Connor writ es: : I don't suppose someone could post an explanation of how kernel threads wor k : could they? :) Looks like it just does a fork like thing so it can do context switches... Warner

Re: restricted kernel threads implementation from NetBSD via n

1999-06-28 Thread Warner Losh
In message xfmail.990628173909.dar...@dons.net.au Daniel J. O'Connor writes: : I don't suppose someone could post an explanation of how kernel threads work : could they? :) In a nutshell, it appears to basically do an rfork. It then becomes like any other process that is interrupted