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

Is there any difference in major browsers' rendering across operating systems?

I have long believed that the only difference as far as the rendering of major browsers on different platforms is concerned is operating systems' underlying font-rendering technology, everything else relying upon the same libraries included with the…
5
votes
2 answers

When we associate '&' with a variable the address we get is the virtual address or the physical address?

#include int main() { int a; printf(" %u ",&a); return 0; } The address we get is the virtual address of the process or the physical address when the process is running in main memory. Please help I am confused !!
user3111412
  • 177
  • 1
  • 3
  • 11
5
votes
2 answers

What's the difference between a thread's stack and a process's stack

Do threads and processes both have independent stacks? If the answer is yes, what's the difference between them? Thanks in advance!
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83
5
votes
2 answers

MySQL doesn't starts on AMPPS OS X

I have I problem with starting mysql using AMPPS. I'm Using OS X Maverics and last version of Ammps. After little system crash and restart I can`t start mysql. mysql.err 2014-01-22 18:12:41 398 [Note] Plugin 'FEDERATED' is disabled. 2014-01-22…
5
votes
3 answers

Python - os.rename() - OSError: [WinError 123]

path='U:\\rmarshall\Work For Staff\\ROB\\_Downloads Folder\\' file='file.pdf' newFileName=time.strftime('%Y-%m-%d_')+row[1]+time.strftime('_%H:%M:%S')+'.pdf' newFolderLocation='U:\\Company - do not…
Phoenix
  • 4,386
  • 10
  • 40
  • 55
5
votes
1 answer

Is it possible for any 2 processes to have the same arrival time in FCFS scheduling in Operating system.

Is it possible for any 2 processes to have the same arrival time in FCFS scheduling in Operating system.
SaiKanth_K
  • 163
  • 1
  • 12
5
votes
4 answers

what is general semaphores range?

What is the range of a general semaphore. I know that it can take negative values, 0 and 1. Negative values demonstrating the number of processes that are blocked in block queue. 0 means no process is in block and 1 means there is one resource…
muradin
  • 1,249
  • 2
  • 14
  • 34
5
votes
1 answer

Python: Keep savefig from overwriting old plots

I simply use plt.savefig(filename+'.png', format='png') to save my plots. But I want to keep my old versions of filename.png when I create a new one (using different colour codes, etc.) without always having to come up with a new filename. Since I…
alice
  • 254
  • 2
  • 4
  • 9
5
votes
1 answer

Why are most file extensions 3 characters or less?

Most files I see and use end in .something, where the .something is often 3 characters. I know that some file extentions are shorter, like .py or .r, but I have never seen one longer than .exe or .jpg I know from this FAQ that they can be up to 260…
james12802
  • 335
  • 1
  • 4
  • 11
5
votes
1 answer

Reading file using fread in C

I lack formal knowledge in Operating systems and C. My questions are as follows. When I try to read first single byte of a file using fread in C, does the entire disk block containing that byte is brought into memory or just the byte? If entire…
user2901535
5
votes
6 answers

Basic OS boot question

I have some kinda basic question to the boot process of a computer and the part where the bootloader calls the OS. So I know that the BIOS copies the first 512 bytes from a bootable drive into memory and executes the code - so that's the boot…
lamas
  • 83
  • 4
5
votes
1 answer

What exactly happens when an OS goes into kernel mode?

I find that neither my textbooks or my googling skills give me a proper answer to this question. I know it depends on the operating system, but on a general note: what happens and why? My textbook says that a system call causes the OS to go into…
user1747330
5
votes
2 answers

How user programs like in Java, make system calls/ call kernel subroutines?

I want to have clarity on user space program and OS interaction. In the context of a file I/O, I want to know how a user app like a java file i/o API read() may work. Since file operations are accessed by POSIX system calls like open() close()…
sapthrishi007
  • 393
  • 3
  • 13
5
votes
1 answer

Mac OS X Mavericks: How do I remove the quarantine flag from my Sparsebundle mount?

I just upgraded to Mac OS X Mavericks. I have a sparsebundle image which is mounted with the "quarantine" attribute, which prevents me from running any shell scripts on the volume. Here is what I get when I run "mount" in terminal: /dev/disk1s2 on…
Chanpory
  • 3,015
  • 6
  • 37
  • 49
5
votes
2 answers

How does linux kernel creates sysfs?

I have started looking at linux kernel code for my OS course. In that I'm interested in sys file system (sysfs). I'm interested in finding out when and how sysfs gets created? Which files in linux kernel code generate this file system? I have setup…
Rajesh Golani
  • 448
  • 1
  • 6
  • 13