Click here to Skip to main content
15,893,814 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:00
Mladen Janković2-Sep-16 12:00 
GeneralRe: OS Kernels Pin
Richard Andrew x642-Sep-16 12:04
professionalRichard Andrew x642-Sep-16 12:04 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Tomaž Štih3-Sep-16 6:29
Tomaž Štih3-Sep-16 6:29 
GeneralRe: OS Kernels Pin
Mladen Janković3-Sep-16 7:36
Mladen Janković3-Sep-16 7:36 
GeneralRe: OS Kernels Pin
Tomaž Štih2-Sep-16 22:30
Tomaž Štih2-Sep-16 22:30 
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 2:11
professionalJackPeacock6-Sep-16 2:11 
Coming from the embedded world where C is the 800 lb gorilla, the reason for this is memory management, or lack of it. Building an OS has much in common with embedded, since it's a "bare iron" implementation. That means there no service to allocate and free memory or manage stacks and heaps. That's what the OS does.

More critical is the tradeoff between deterministic and probablistic behavior. Real time response requries deterministic response times. When an interrupt occurs it absolutely, positively has to be handled right now (want your brakes and steering to wait for the heap to be consolidated?). Inject garbage collection and heap allocation overhead, respone time become probabilistic...it may be ready on time, but no guarantee.

We think of an OS kernel in terms of threads, scheduling, maybe a filesystem, but that's what's exposed to the user. It's the internals, finding the minimal path to schedule the next task (or tasks plural for multi-core), efficiently passing inter-process messages, and optimizing I/O operations for parallel, asynchronous operation. Often the code is closely tied to the hardware, and that's where C outperforms anyting but assembler.
GeneralRe: OS Kernels Pin
Richard Andrew x646-Sep-16 12:11
professionalRichard Andrew x646-Sep-16 12:11 
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 22:29
professionalJackPeacock6-Sep-16 22:29 
GeneralWhat do you guys think of H-1B visas ? Pin
jlongo2-Sep-16 6:19
jlongo2-Sep-16 6:19 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
User 84202-Sep-16 6:24
User 84202-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:30
mveOriginalGriff2-Sep-16 6:30 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Charles Programmer5-Sep-16 6:24
Charles Programmer5-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:29
mveOriginalGriff2-Sep-16 6:29 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
jlongo2-Sep-16 6:35
jlongo2-Sep-16 6:35 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 6:40
mveRichard Deeming2-Sep-16 6:40 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Kent Sharkey2-Sep-16 7:55
staffKent Sharkey2-Sep-16 7:55 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 8:11
mveRichard Deeming2-Sep-16 8:11 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
#realJSOP2-Sep-16 16:22
mve#realJSOP2-Sep-16 16:22 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
W Balboos, GHB2-Sep-16 6:41
W Balboos, GHB2-Sep-16 6:41 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 6:52
mveRichard Deeming2-Sep-16 6:52 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Rick York2-Sep-16 9:58
mveRick York2-Sep-16 9:58 
GeneralRe: What do you guys think of H-1B visas ? PinPopular
jschell2-Sep-16 7:14
jschell2-Sep-16 7:14 
GeneralRe: What do you guys think of H-1B visas ? Pin
Member 127183373-Sep-16 2:03
Member 127183373-Sep-16 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.