lkml.org 
[lkml]   [2001]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] (Updated) Preemptible Kernel
Date
On September 6, 2001 10:39 pm, Phillip Susi wrote:
> ... what happens if
> say, the kernel called from user space is holding a lock, and gets preempted?

The thread will eventually get rescheduled and release the lock.

> Is there a mechanism to disable preemption while holding locks or at other
> resources that need to be freed before another task is run?

IIRC spinlocks inhibit scheduling, the simplest way to handle that.

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [W:0.039 / U:1.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site