Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

When I'm login into the raspberry through ssh I'm receiving the following message

Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l

What does it mean the PREEMPT? Is that real time kernel?

share|improve this question
    
Maybe you should consider accepting one of the answers ;) –  Morgan Courbet Jan 8 '13 at 9:58

2 Answers 2

up vote 4 down vote accepted

PREEMPT seems to stand for "kernel preemption". This SO answer explain in a clear English what is a preemptive kernel:

Preemptive multitasking - Running several processes/threads on a single processor, creating the illusion that they run concurrently when actually each is allocated small multiplexed time slices to run in. A process is "preempted" when it is scheduled out of execution and waits for the next time slice to run in.

A preemptive kernel is one that can be interrupted in the middle of a executing code - for instance in response for a system call - to do other things and run other threads, possible that are not in the kernel. The main advantage in a preemptive kernel is that sys-calls do not block the entire system. if a sys-call takes a long time to finish then it doesn't mean the kernel can't do anything else in this time. The main disadvantage is that this introduces more complexity to the kernel code, having to handle more end-cases, perform more fine grained locking or use lock-less structures and algorithms.

share|improve this answer

It means that you have preempted kernel version. More info about preempted kernel could be found here.

This option could be enabled while compiling kernel with option:

CONFIG_PREEMPT=y
share|improve this answer
    
Wow! I think we asked the same thing to Google :) –  Morgan Courbet Dec 6 '12 at 21:33
    
:) I have worked with both preemptive and non-preemptive kernels... so I had some info about those. BTW this was quite straightforward without asking Google :) –  codewarrior Dec 6 '12 at 21:36
    
I have just noticed your link to StackOverflow. Indeed similar answer. +1 for your @Morgan –  codewarrior Dec 6 '12 at 21:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.