473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Linux Kernel preemption during spin lock, mutex lock

Spin Lock
I have studied that when a process running in the kernel space is holding a spin lock, it cannot be preempted unless it blocks, sleeps or completes the task. Is my understanding correct?

Mutex Lock
Does the process running in the kernel space and holding a mutex lock gets preempted in both the cases below:
1. a high priority process comes or
2. the process timeslice is exhausted ?

-LinuxPenseur
Jun 30 '11 #1
0 1658

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kay Schluehr | last post by:
Moin Maybe You can start somewhere with the Linux-kernel, the Python-Interpreter and the ctypes extension module and replace successively parts of the Linux-kernel by Python modules. So You...
3
by: Steven T. Hatton | last post by:
http://netlab.ru.is/exception/LinuxCXX.shtml We have implemented a complete kernel level run-time support for C++ in the Linux kernel. In particular our run-time support enables the full use of...
3
by: gooch | last post by:
This is not really a general c question but here goes anyway. I am trying to add a system call to a kernel (redhat 2.4.18) for a class I am taking and I have done the following. in...
2
by: Hao Xu | last post by:
Hi everyone! I think that everyone knows ctime() in glibc: The ctime(), gmtime() and localtime() functions all take an argument of data type time_t which represents calendar time. When ...
4
by: rahul8143 | last post by:
hello, I have some inline declaration questions. 1)why new kernel 2.4.30 has intermediate function of __ instead of direct calling it? int ip_finish_output(struct sk_buff *skb) { return...
0
by: Lawrence D'Oliveiro | last post by:
Just came across this article <http://trends.newsforge.com/article.pl?sid=06/07/20/1431259from the Ottawa Linux Symposium, which mentions (among other things) Martin Bligh's presentation on the...
1
by: Ryan Liu | last post by:
Hi, Cane someone compare Mutex, lock, Monitor, and when to use which one? And the concept of waiting query, ready query, Pulse, PulseAll, can someone explain a little bit? Thanks a lot!...
1
by: creativeinspiration | last post by:
Hey Everybody, Could anybody suggest a good linux kernel programming book? The best kind would be like one those where you can learn a lot fast (like those 24 hour series books). Please let...
45
by: Chris Forone | last post by:
hello group, is there a chance for other functions to get the lock if i have following loop: while (running) { Lock local(mutex); }
1
by: vlcs | last post by:
I am currrently working on "Creation of Postmortem data logger in Linux on Intel architecture". Its nothing but core utility creation. Can any body share the details about how the signal handlers for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.