Kernel threads and printf locking question

Daan Vreeken [PA4DAN] Danovitsch at
Mon Jan 12 10:53:40 PST 2004

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 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
> > 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.


More information about the freebsd-current mailing list