Questions tagged [operating-system]

An operating System (OS) is a software program whose role is to be an abstract layer between software requisitions for resources and the hardware available, manage input/output, memory allocation/deallocation, file systems, among other basic tasks a device (not necessarily a computer) should do.

An operating system (OS) is a basic software whose role is to be an abstract layer between software requisitions for resources and the hardware available. The basic components of an operational system can be listed as:

  • Boot loader

Although some may say it is not part of the OS, it's the starting point where the hardware after doing booting routines transfers the control to a small procedure that will bring up the entire system

  • User interface

Can be graphical or text-based, is the central point of communication between the user and the OS

  • Kernel

The core of the OS that manages all the resources of the hardware according to the requisitions. Kernels can be either a micro kernel or a monolithic kernel. Both types include the following functionality:

  • Process management (scheduling, multitasking, pseudo-parallelism, and so on)
  • Memory (and virtual memory) management
  • Inter-process communications (IPC)
  • Interrupt management

Monolithic kernels include these additional features:

  • File system and disk access organization
  • Device management (with the aid of device drivers, plug-and-play routines, dynamic modules, and so on)

These features are not included directly in a micro-kernel, but are instead implemented in tasks. One example of a fairly widely used micro-kernel is QNX. As well, many hypervisors are micro kernel designs. A major argument for micro-kernels is that their small size makes them easier to analyze and more secure.Tanenbaum

Most well known operating systems are monolithic. In fact, the majority of commercial and Open source OS's are monolithic. Generally they allow faster hardware response.

Book : Operating System Concepts by Abraham Silberschatz

Recommended preliminary reading before posting a question: OSDev Wiki

See also: .

13710 questions
5
votes
3 answers

os.platform() returns darwin instead of OSX

os.platform(); The above JS instruction returns the name of OS . When it is runned on Ubuntu , it returns 'linux' When it is runned on Macbook, it returns 'darwin' I am wondered why does not return osx ,unix or bsd.. ? Does darwinis a fork…
Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
5
votes
4 answers

How exactly does OS protect kernel

my question is how exactly does operating system protect it's kernel part. From what I've found there are basically 2 modes kernel and user. And there should be some bits in memory segments which tels if a memory segment is kernel or user space…
Jarek
  • 7,425
  • 15
  • 62
  • 89
5
votes
7 answers

Are there any operating systems that have zero C, zero C++ and zero assembly code?

If so, please list some of them. Thanks
DWalters
  • 61
  • 3
5
votes
2 answers

Python Semaphore: I Need Negative Initial Value

Python's semaphore doesn't support negative initial values. How, then, do I make a thread wait until 8 other threads have done something? If Semophore supported negative initial values, I could have just set it to -8, and have each thread increment…
Jobs
  • 3,317
  • 6
  • 26
  • 52
5
votes
3 answers

Do I need to install JVM on each operating system to run java software or java compiled file.?

Java is platform independent, because in it code firstly compiled and then JVM convert into the code which is understand by OS. So I have doubt, do I need to install JVM on each OS or not?
Parvesh
  • 103
  • 1
  • 8
5
votes
4 answers

Java: Ensure that a thread never gets context switched

Among around 150 threads on say 20 core machine. I want that a particular thread never gets context switched. I am not sure that setting Thread priority to MAX_PRIORITY will do this or not? Also if we set priority to max is it necessary that OS will…
PHcoDer
  • 1,166
  • 10
  • 23
5
votes
0 answers

How to remove the file or folder even if it is used by another process

Is there a way to force-delete a file or a folder even if it is used by another process? I am getting on Windows: [Error 32] The process cannot access the file because it is being used by another process.
alphanumeric
  • 17,967
  • 64
  • 244
  • 392
5
votes
2 answers

What does "interrupt hooking" mean?

I'm reading the PnP BIOS specification and stumbled across the following paragraph: Actively monitor the INT 19h bootstrap vector The current System BIOS Architecture allows option ROMs to hook INT 19h indiscriminately. By actively monitoring…
cadaniluk
  • 15,027
  • 2
  • 39
  • 67
5
votes
2 answers

Which segments are affected by a copy-on-write?

My understanding of copy-on-write is that "Everyone has a single, shared copy of the same data until it's written, and then a copy is made". Is a shared copy of the same data comprised of a heap and bss segment or only heap? Which memory segments…
ashish
  • 1,384
  • 1
  • 12
  • 21
5
votes
3 answers

programmatically executing and terminating a long-running batch process in python

I have been searching for a way to start and terminate a long-running "batch jobs" in python. Right now I'm using "os.system()" to launch a long-running batch job inside each child process. As you might have guessed, "os.system()" spawns a new…
5
votes
1 answer

Identify system operating system by id

I want to identify an OS, but not by a String as I want to map this as an ID. Several ways of going about this, so my question is: Does anyone have a list of all the possible answers this produces? var name = (from x in new…
ericosg
  • 4,926
  • 4
  • 37
  • 59
5
votes
2 answers

How do I put a file path variable into pandas.read_csv?

I tried to apply it through os.environ like so: import os import pandas as pd os.environ["FILE"] = "File001" df = pd.read_csv('/path/$FILErawdata.csv/') But pandas doesn't recognize $FILE and instead gives me $FILErawdata.csv not found Is there…
johntan05
  • 105
  • 1
  • 2
  • 9
5
votes
3 answers

How preemption is handled in single core systems?

Given a single core system that employs preemption for multitasking, how does the OS carry out thread interrupts when a user mode application is executing on the system? Since the processor is handling the user code when does it get a chance to ask…
5
votes
2 answers

Is the assembly language different from one architecture to another?

I read that every processor has its own assembly language, so is every processor has it own assembly or every architecture? How OS and programming languages work on different assemblies?
5
votes
3 answers

If hyperion releases amiga to another platform, TODAY, would it survive?

If hyperion releases amiga to another platform, TODAY, would it do well enough? I'd love to develop for the amiga platform. I do miss it. What do we need? btw, i realize that this isn't a problem, more of a wishlist for the future of amiga.
Espen Schulstad
  • 2,355
  • 3
  • 21
  • 32