Questions tagged [os-kernel]

Questions about the fundamental component of an operating system, which manages the allocation of resources to applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Is the OS kernel part of the main() of the OS or is it a seperate function?

I am wondering is usually the OS kernel which provides a link between 2 processes part of the main() of the os or is it a seperate function?In other words do we usually encapsulate the OS kernel in ...
Cerise's user avatar
  • 153
0 votes
1 answer
22 views

What does the data field store?

This semester we have a class related to Operating Systems.The class itself is not obligatory but the class is done at the same time with a core class and I will simply not waste a year for 1 class ...
Cerise's user avatar
  • 153
2 votes
1 answer
729 views

Question about Context Switching

I'm reading OSTEP for my Operating Systems course, and I have a question from Chp.6.3: Note that there are two types of register saves/restores that happen during this protocol. The first is when the ...
user129393192's user avatar
0 votes
0 answers
64 views

How do programs communicate with the kernel?

I am trying to understand how operating systems work because I would like to write my own version of Unix. Anyway, I have some doubts about some mechanisms that allow the applications to communicate ...
Angelo Giannuzzi's user avatar
1 vote
2 answers
68 views

Does the OS come in the hard drive?

This might be a a simple and for some a silly question as well. If I buy two hard drives and have windows in one and Ubuntu in the other, can I work with both two systems(one at a time). Example, I ...
ThunderGlove's user avatar
0 votes
0 answers
33 views

The signal operation can be implemented with spinlocks?

Here's a question about semaphore. (True/False) The signal operation can be implemented with spinlocks The answer is false, but I don't know why. I thought the ...
samli50801's user avatar
0 votes
2 answers
109 views

Do i really need to study monstrously long intel manual?

I want to be an OS developer. I can say I am a bit comfortable after i read few tutorial on x86 assembly. But I see a lot detailed in intel manual, does an OS developer really need to study whole ...
shun's user avatar
  • 1
3 votes
1 answer
85 views

How does caching, paging, virtual memory, and OS all tie together for UNIX copy-on-write?

In my OS course, the instructor mentioned the following: In UNIX if a parent process creates a new child ("fork") then the child is an exact duplicate of the parent. This means its memory ...
Mohammed Arshaan's user avatar
0 votes
0 answers
54 views

Memory Hierarchy Mappings to real world

This article from IBM (link) talks about Memory hierarchy in its actual hardware parts. NUMA While operating systems present memory to the running applications as a unified space, modern large ...
isomorphik's user avatar
-1 votes
1 answer
161 views

Does the Posix read() system call for FILE* have an internal buffer in the kernel?

Does the answer depend on the number of bytes requested? If it is forced to keep a buffer due to some unknown device/diver, can it optimize and skip the buffer if it's going to be a disk read? I'm ...
estin's user avatar
  • 1
0 votes
1 answer
52 views

Is kernel essentially an implementation of system calls?

In essence, is kernel basically the code that implements a set of system calls?
Noob_Guy's user avatar
  • 121
1 vote
1 answer
85 views

Boot Loaders, Boot Sectors, BIOS, and GRUB

Again, I must apologize if this is "easily googlable". I have tried. My understanding is that the BIOS typically looks for the magic number 0x55aa at the end of a 512 byte sector (so bytes #...
prss98408's user avatar
2 votes
1 answer
56 views

Are there any operating systems that utilize only user threads?

We're going over threading models in my freshman CS class. Are there any examples of operating systems that use exclusively user threads (N:1)? It looks like 1:1 is far and away the most common model ...
James's user avatar
  • 21
0 votes
1 answer
103 views

What is the need for Kernel threads?

I'm a bit confused about kernel-threads, I searched a lot at the Internet, SOF and here but found very diverse and conflict answers. What is the need for Kernel threads? Are they threads that are only ...
osama.bmaq's user avatar
0 votes
0 answers
77 views

Over the course of history, did Linux and Windows NT kernel design learn from each other?

Linux Kernel in its primitive form was first written in 1991; Windows NT kernel (differ from Win9x Kernel which was based on DOS) purportedly began development in 1990. both being a monolithic kernel, ...
Sajuuk's user avatar
  • 155
0 votes
1 answer
406 views

How does the Linux kernel build its symbol lookup table?

I am writing a small x86-64 OS. I am trying to make sense of how Linux loads modules at runtime by linking them into the kernel. I understand that Linux builds a symbol lookup table. Basically, a ...
user123's user avatar
  • 1,102
1 vote
1 answer
119 views

What are the minimum functions, services, or features of a software to be called as an operating system?

When can we say that a software is an operating system and not a firmware, in terms of what it can do? I know that firmware is usually stored in ROM and OS is stored on HDD/SSD, but technically you ...
Noob_Guy's user avatar
  • 121
0 votes
0 answers
30 views

LONG TERM SCHEDULER and how does it interact with USER

If I select chrome browser, then I select Android Studio, do they directly open in Ready Queue (allocated to RAM main memory), what processes actually goes into job queue? Does Job Queue gets filled ...
Harsh Bhudolia's user avatar
1 vote
1 answer
885 views

What happens if there is context switch while executing system call?

Suppose a process does system call, hence it goes to kernel mode, the registers are saved. Now the system call will be running in process' allocated kernel stack. Can there be a context switch when a ...
David Roonie's user avatar
0 votes
1 answer
70 views

(reference) Where can I learn more about I/O operations in OS?

I have basic understanding of file I/O. I know how to operate the read and write system calls in Linux. I know that there is blocking and non-blocking I/O. I want to know more about the underlying ...
Teodor Dyakov's user avatar
0 votes
2 answers
519 views

What is meant by a single-threaded kernel?

I was looking at this course but I cannot seem to understand what is meant by the term "single-threaded kernel". Does it mean that: only a single kernel thread is made available by the OS? ...
Priyanshul Govil's user avatar
2 votes
2 answers
1k views

How are kernels (and operating systems in general) written in C?

I'm trying to understand how you set about writing an OS in something like C. I've always used C to write applications - using commands like malloc and ...
MysteriousWaffle's user avatar
0 votes
2 answers
196 views

How could i create a multi-threading system in a kernel?

Im trying to figure out if there's an assembler instructions or a bios intruction to get multi-threading in a kernel. In the case that doesn't exist that, how could i set muti-threading in a kernel?
UserGuestIneedyourhelpguys2631's user avatar
1 vote
1 answer
719 views

OS: Why is it necessary to have hardware support for implementing Preemptive Scheduling Strategies?

I think, Preemption can easily be done in kernel mode, where it just have to call the Context-Switch procedure. Also, based on algorithm we can select the new process from the ready queue as well... I'...
sgoel's user avatar
  • 41
0 votes
1 answer
148 views

Isn't a small monolithic kernel a micro-kernel, and a big micro-kernal a monolithic kernel?

I don't understand the last para. I corrected its typos. Please explain like I'm 5. If micro-kernels can be big, and monolithic kernels can be small, doesn't this size gradation collapse the ...
user avatar
1 vote
1 answer
335 views

OS: Are User-level threads and software threads (and also kernel-level threads and hardware threads) the same?

I am referencing the Book Fundamentals of Computer Algorithms" by Ellis Horowitz et al. At the part which they talk about multi-threading models, user-level and kernel-level thread are introduced....
Midhunraj R Pillai's user avatar
2 votes
1 answer
116 views

How were operating systems even made?

By that, I don't mean what is needed to make an operating system. I know that OSes are built on top of kernels and whatnot. But what I mean is, it wasn't like anyone could just "program" the ...
Ayaz Amin's user avatar
0 votes
1 answer
228 views

Is vmlinux a virtual machine?

From Wikipedia, On Linux systems, vmlinux is a statically linked executable file that contains the Linux kernel Does that mean vmlinux is a virtual machine that runs Linux? I am really confused.
user127669's user avatar
2 votes
1 answer
93 views

Paging only for user code. What about kernel code?

Why is paging done only for user code (user space)? I know that the basic intuition behind paging is for managing larger logical address space in smaller physical main memory space. Won't the kernel ...
Nascimento de Cos's user avatar
1 vote
2 answers
115 views

Can User Level Thread read/write Kernel thread?

As far as I read in a OS text book (Operating Systems by Silberschatz) Kernel mode is for privileged task, so it it true to claim that "User Level Thread can read/write Kernel threads" ? ...
HadiRj's user avatar
  • 113
0 votes
2 answers
135 views

Does FreeRTOS replace linux or run ontop? [closed]

I am looking into FreeRTOS, just for personal learning and I am stuck on how the fundamentals of how it works with Linux. So for example, I am able to build FreeRTOS on my linux ubuntu machine. Now ...
user118691's user avatar
0 votes
0 answers
37 views

Is it possible to run more than one Turing Machine emulator using only one processor kernel?

I had this question on computer architecture exam and can't find an answer anywhere. Is it possible to run several Turing Machine emulators at once using only one processor kernel? a) Yes, by ...
CoderGirl's user avatar
2 votes
2 answers
151 views

Why doesn't everyone use distributed operating systems?

As requested by a moderator, this question as been separated from my question about microkernel-based operating systems. In the 1980's, the team that developed C and Unix developed a distributed ...
Daniel Moskovich's user avatar
3 votes
1 answer
2k views

Why doesn't everyone use microkernel-based operating systems?

From what I have read on operating systems, the impression I have been receiving is that, for at least 30 years, "everybody has known" that microkernel-based operating systems are "better" than ...
Daniel Moskovich's user avatar
1 vote
1 answer
189 views

Is "capability-based security" vs "hierarchical-protection-domain based security" a false dichotomy?

The wikipedia page on capability-based security states: Capability-based security is to be contrasted with an approach that uses hierarchical protection domains. However, in order to implement ...
user56834's user avatar
  • 3,702
3 votes
1 answer
151 views

A microkernel fully hardcoded in hardware?

Does there exist a (micro-)kernel of an operating system that is fully implemented in hardware? That is, a kernel that is not stored in RAM, and loaded into CPU registers after an interrupt or system ...
user56834's user avatar
  • 3,702
1 vote
0 answers
40 views

Journey of a process from compilation to execution [closed]

I am reading operating system, and after reading some topics (Processes, Main Memory management) I got somewhat confused. I have knowledge about certain things but I am not able to combine and ...
Lucifer's user avatar
  • 11
1 vote
1 answer
45 views

Is it possible for a syscall to pack together different places in memory?

While programming with buffers like uint8_t* in C++ I often arrive at situations on where I'm forced to do copies. For example, if I receive packets in chuncks from ...
Guerlando OCs's user avatar
2 votes
2 answers
549 views

Why do operating systems freeze?

I am currently writing from a computer on which a VM has just frozen due to exhausted RAM. I am obviously no expert in the field of operating systems but i know that they implement certain memory ...
Basile Czajkowski's user avatar
0 votes
2 answers
41 views

How can the initial "booting" state of a computer be different at different time points? [closed]

In my experience, sometimes a computer boots normally, and in a time span of days, the computer won't boot, then again, it will boot normally again. I am not a computer science expert so I assume that ...
hirschme's user avatar
  • 103
1 vote
1 answer
543 views

How are hardware interrupts handled?

I have read that a hardware interrupt is handled asynchronously by the CPU, which means that the interrupt signal may arrive at any point of time with respect to the CPU clock cycle. Now, this means ...
Shashank Kumar's user avatar
1 vote
0 answers
22 views

Why do we need volume as an abstraction on top of partition?

I'm curious about what do we need volume as an abstraction on top of hardware partition? What problem it tries to solve? What is the limitation of this concept?
zack's user avatar
  • 196
-1 votes
1 answer
994 views

Calculation of speed up of a program executed in multi-threaded system

Speed up of execution of a program is to be calculated within a multi-threading rather than a single thread system. The program's 30% instruction can be executed serially & rest can be executed ...
Dipsankar Maity's user avatar
-1 votes
1 answer
85 views

need for an example of synchronous but non periodic interrupt

I know that synchronous interrupts are interrupts that occur with a clock tick (after finishing an instruction) and I think that periodic if they happen in every n ticks of the clock. To get a better ...
Yuval Kirstain's user avatar
0 votes
1 answer
186 views

Is OS mode required for accessing general purpose registers

In which of the following cases a process executing in user model is required to enter into the OS mode? (a) Decreasing the value of unsigned integer value in a register to less than 0 (b) Accessing ...
Abhilash Mishra's user avatar
2 votes
1 answer
926 views

In a kernel, what are "global constructors"?

I am a beginner developing kernels (though I have developed several Hello World programs in C and C++). I frequently see reference being made to global constructors (e.g., osdev https://wiki.osdev.org/...
CRISTIAN ANDRES VARGAS GONZALE's user avatar
1 vote
0 answers
39 views

User-level threads and information available to the kernel

User-level threads are transparent to the kernel. How is htop able to show user-level threads running on my system? I know that those threads are user-level threads ...
narendraj9's user avatar
13 votes
1 answer
7k views

What is the real advantage of Google's new Fuchsia operating system kernel?

Google's new in-production OS which it desires to replace not only Android but many other devices utilizes a completely new kernel: The code differs from Android and Chrome OS due to its being ...
Zhro's user avatar
  • 233
7 votes
2 answers
2k views

Why operating system needs interrupt stack, if it has process control block?

I'm reading about an operating system but some concept confuses me. What doesn't confuse me: When an interrupt or system call or processor exception occurs, it happens when user mode tries to ...
helsereet's user avatar
1 vote
1 answer
31 views

Are process-safe mutexes shared between OSes?

I understand you can use process wide mutexes, but does this still apply if you have an additional virtualized operating system provisioned? For example, take two OSes: ...
Adam Thompson's user avatar