Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jan 2004 19:53:44 +0100
From:      "Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        FreeBSD-current@FreeBSD.org
Subject:   Re: Kernel threads and printf locking question
Message-ID:  <200401121953.44394.Danovitsch@Vitsch.net>
In-Reply-To: <200401121108.47481.jhb@FreeBSD.org>
References:  <200401112142.53073.Danovitsch@Vitsch.net> <200401121108.47481.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 12 January 2004 17:08, you wrote:
> On Sunday 11 January 2004 03:42 pm, Daan Vreeken [PA4DAN] wrote:
> > 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 th=
e
> > 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 aft=
er a
> > couple of seconds.
> > [...snip...]
> printf really probably does require Giant right now, it just happens to=
 be
> used very often after bootup when SMP is running.
Ok, thanks for clarifying.

grtz,
Daan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401121953.44394.Danovitsch>