473,320 Members | 2,041 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,320 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 1648

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.