* Spawning kernel threads from other kernel threads(?)
@ 2001-11-21 1:41 mroth
2001-11-21 1:51 ` J Sloan
0 siblings, 1 reply; 3+ messages in thread
From: mroth @ 2001-11-21 1:41 UTC (permalink / raw)
To: linux-kernel
Question:
Can you spawn a kernel thread from another kernel thread? I want to
have one manager entity which will dynamically create kernel threads as
needed. Right now, when I try to spawn another thread from the manager entity
[as of today, still a kernel thread] it will crash. Is this legal? If not, what
is the alternative?
kernel_thread()
Kernel Version 2.4.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Spawning kernel threads from other kernel threads(?)
2001-11-21 1:41 Spawning kernel threads from other kernel threads(?) mroth
@ 2001-11-21 1:51 ` J Sloan
0 siblings, 0 replies; 3+ messages in thread
From: J Sloan @ 2001-11-21 1:51 UTC (permalink / raw)
To: mroth; +Cc: Linux kernel
mroth@calpoly.edu wrote:
> Question:
> Can you spawn a kernel thread from another kernel thread? I want to
> have one manager ?entity? which will dynamically create kernel threads as
> needed. Right now, when I try to spawn another thread from the manager ?entity?
> [as of today, still a kernel thread] it will crash. Is this legal? If not, what
> is the alternative?
>
> kernel_thread()
> Kernel Version 2.4.3
2.4.3 is awfully stale for starters -
and BTW what is an "?entity?" ?
cu
jjs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Spawning kernel threads from other kernel threads(?)
@ 2001-11-21 2:37 mroth
0 siblings, 0 replies; 3+ messages in thread
From: mroth @ 2001-11-21 2:37 UTC (permalink / raw)
To: jjs; +Cc: linux-kernel
>>and BTW what is an "?entity?" ?
Oops. Excuse my ambiguity. When I said "entity" I was describing the design in
a very general form. Let me phrase it like this; my software in theory looks
like:
- a manager "entity" is responsible for destroying and creating "worker"
threads.
- the worker threads then perform a specific tasks.
That's theory though. The implementation actually looks like:
A linux kernel thread has the responsibility of creating and killing threads
(thus
termed "manager").
The worker threads (also kernel threads) perform specific tasks.
>>2.4.3 is awfully stale for starters -
Yup. This is not by choice :-) The hardware/OS is pretty much fixed at this
point.
Would spawning a kernel thread from a kernel thread work with a recent kernel?
>>cu
>>jjs
> Question:
> Can you spawn a kernel thread from another kernel thread? I want to
> have one manager ?entity? which will dynamically create kernel threads as
> needed. Right now, when I try to spawn another thread from the manager
?entity?
> [as of today, still a kernel thread] it will crash. Is this legal? If not,
what
> is the alternative?
>
> kernel_thread()
> Kernel Version 2.4.3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-11-21 2:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-21 1:41 Spawning kernel threads from other kernel threads(?) mroth
2001-11-21 1:51 ` J Sloan
-- strict thread matches above, loose matches on Subject: below --
2001-11-21 2:37 mroth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox