An operating system (OS) is a basic software whose rule is to intermediate software requisitions for resources and the hardware available, manage input/output, memory allocation/deallocation, file systems, among other basic tasks a device should do.

learn more… | top users | synonyms (1)

-4
votes
0answers
38 views

How to find and deal with errors while writing a file system library? [on hold]

I need to know what is the best strategy while developing a public facing API that handles manipulating files. What error conditions I may need to handle? Reference: https://github.com/vivekimsit/...
-2
votes
1answer
87 views

What is a good OS for getting maximum performance out of a C++ program? [on hold]

I am looking to run a C++ program without any interference (context switching) from other processes. Is there a small operating system that will allow me to stop all other processes? Is there a bare ...
3
votes
1answer
81 views

How does I/O occur for large data files?

Assume that we have a 4GB RAM processor. Let's say we want to play a 4GB movie in VLC player. Now, processor first starts VLC Process and then starts to load 4Gb data. My question is how does this ...
-3
votes
0answers
51 views

Write pci access in kernel c? [closed]

Does anyone know how to access the pci and pci express cards in c for an operating system? I don't know how to access the pci cards, but does someone know what I have to do. I want to have an array of ...
0
votes
2answers
84 views

Why a thread uses a stack in a context switch?

Correct me if I'm wrong, but if I have an operating system that makes a context switch, then that context switch is in practice a switch from one thread to another, where one thread was running one ...
-1
votes
2answers
109 views

How to write code for different versions of linux

So, I've written some fairly big code for cent OS 7.1. The code essentially makes use of different command line tools by parsing the text output and shoving it in a database... pretty straight forward....
6
votes
2answers
379 views

Why is threading platform-dependent?

I am reading book "Foundations of Qt Development", Chapter 12, and I read that threading is platform-dependent, can someone explain, why? I know how to use threads but that what they said is not so ...
4
votes
1answer
87 views

Kernel operation

I'm trying to grasp the concept of an operating system at the moment (on Unix-like machines) The kernel is the process with PID 0. Of course the Kernel is not really "just another process" because a ...
0
votes
1answer
169 views

Kernel facilities needed for C++

I'm working on a kernel for a proprietary embeded system. I've had no issues but I'd like to expand its capabilities directly. I made it run C. I did so pretty much by giving my kernel a stack. My ...
-4
votes
1answer
65 views

Where should we put folders on the user's computer? [closed]

This reddit post makes a good point: Why do developers create so many folders directly in "My Documents". My home folder is completely full of this kind of stuff (especially when I show hidden files ...
3
votes
1answer
125 views

Effect of demoting copy-on-write page to read-write on other processes

The Windows OS tries to conserve physical memory usage by allowing DLLs loaded in their base (desired) address in different processes to use the same physical pages with copy-on-write semantics; this ...
3
votes
3answers
189 views

What's the point of hidden files?

What is the point of hidden files? In Microsoft Windows they exist, in Mac OS X they exist and in Linux they exist. It seems to me that it just makes detecting malware more difficult. The only upside ...
0
votes
0answers
31 views

File Hashing between OSes when Perforce changes line endings

I have a system of validating file downloads from a server. The server is running Ubuntu/AWS and generates the hash using data files it pulls from the version control, which is Perforce. It passes ...
-3
votes
2answers
339 views

What are the differences between operating systems and computer systems?

Wikipedia's definition of a "computer system" is: Computer system is define as the combination of hardware software user and data with referring to communication and procedure involved in between ...
0
votes
1answer
33 views

What if a task waits for a resource in STCF algorithm?

I am a computer science student and I have an exam tomorrow on operating systems. I have the exam questions of past years and there is one scenario in a question. There are two tasks in the ready-to-...
3
votes
2answers
394 views

Trying to understand on what “user.dir” property actually means?

So basically wen I googled on what the "user.dir" property does I got this link to a similar question on stackexchange: Java “user.dir” property - what exactly it means? So basically the answer given ...
5
votes
1answer
142 views

Pthread scheduling (System and Process)

I've read the operating system concepts 8th edition written by abraham silberschatz. However, I don't understand Pthread Scheduling. Thread-library schedules user-level-threads on LWP(Lightweight ...
4
votes
1answer
138 views

Threads: the difference of concurrency between many-to-one model and one-to-one model

I am studying "Threads" part with a textbook, Operating system concepts written by Abraham Silberschatz, Peter, Greg. First, I'm going to say something in the textbook related to my question, and ...
0
votes
0answers
78 views

Architecture of an extendable application

I am developing an embedded application on an ARM platform. I want to use ArchLinux as the underlying operating system and then create my own GUI. I want the application to be extendable (have apps if ...
0
votes
1answer
103 views

RIOT-OS and multiple executables?

I am brand new to embedded programming and am wondering if RIOT-OS has the capabilities that my small project requires. I have 3 executables, fizz, buzz and foo. They all do separate - but very ...
-2
votes
1answer
54 views

Move file into apropriate directory based upon first letter of second word, followed by the first two letters of the second word with Python [closed]

EDIT: Apparently the below question is too specific. Let me rephrase: I'm looking for a way to fit a letter into a list of specified ranges such that, if given the letter S and the ranges A-F, G-M, N-...
0
votes
4answers
1k views

Relation between Kernel & BIOS routines [duplicate]

How does a Kernel provides different functionality to OS? Does it use the BIOS routines or use special device drivers for this, or something else? If uses BIOS how does it come to know which routine ...
26
votes
5answers
4k views

Why don't Windows/Linux use relational Databases (RDBMS)?

Why don't Windows/Linux use relational databases (RDBMS)? I know they use file systems to store all data but don't you think it is more efficient to use databases like we use in web sites/web apps? ...
2
votes
0answers
593 views

Cross-compiling Java app to run directly on ARM

Please note: although I am using ARM SAM3X8E in this example, I'm just using that as a concrete example, and the answer to this question could easily be given using any other MCU such as AVR, etc. I ...
2
votes
2answers
295 views

Compiling and deploying a C program to an MCU running an RTOS

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair ...
2
votes
1answer
103 views

Compiling and deploying RTOS to an MCU

Please note: Even though I'm specifically talking about an RTOS called Embox here, and even though I'm talking about AVR/ARm, I think this question can be answered by anybody whose ever done a fair ...
4
votes
2answers
1k views

Benefits of RTOS vs Bare Metal for MCU Programming?

Please note: This question specifically mentions two RTOSes but is more generic and can probably be answered by anybody who has written C code for embedded RTOSes before, and had their software run ...
0
votes
2answers
120 views

Is renaming an 'alias' for moving?

Is it true to say (on Windows and Unix\Linux\OS X) that renaming a file or directory is just an alias for moving? e.g. Are there any side effects to either which are not present on the other? Does ...
4
votes
0answers
71 views

Seeking opinions on using device tree for I/O definition

I've been working ELLCC, a clang/LLVM based development tool chain targeting ARM, Mips, Microblaze, PowerPC, and x86 targets. The tool chain is pretty complete and runs on Linux, Windows, and Mac OS X....
0
votes
1answer
738 views

What are the components of a process? [closed]

What exactly is a process and what all things is a process comprised of? I have read the Wikipedia page and I found only abstract details over there. I want to know what details are stored by a ...
0
votes
3answers
142 views

What is the explication for the difference execution time for the same instruction?

As you know when we run instruction in our code like long a = b; we will not have the same ticks each to be executed. first exeution it take 2ticks; second exeution it take 3ticks; third exeution it ...
0
votes
2answers
48 views

Examples of operating systems capable of serving http-requests that does not support direct slash for directory separator

My php framework uses DIRECORY_SEPARATOR constant instead of /. Can there be any other options for a directory separator?
1
vote
1answer
155 views

Translation Lookaside buffer - Lookup By Page Size

I am having a hard time finding documentation that explains precisely how the various TLB caches are used in modern processors. Most modern processors have separate TLBs for code/data. That in itself ...
0
votes
5answers
1k views

Do bare computer systems (without OS installed) use (executable) files? [duplicate]

As far as I read, files are introduced in OS books. Before an OS is installed on a bare computer system, does the computer use files? In particular, executable files have formats in OSes, e.g. ...
-2
votes
3answers
394 views

Programming in Linux (C++) [closed]

So I don't know If this is the right place to ask this. I am new to programming, I am not very in to it (I know classes,arrays,functions..etc(Basic Things)). I was programming with Visual Studio 2013 ...
20
votes
3answers
1k views

Why aren't “fat binaries” more widely used for cross-platform applications?

As far as I know, so-called "fat binaries"--executable files that contain machine code for multiple systems--are only really used on Apple PCs, and even there it seems like they only used them because ...
4
votes
2answers
1k views

How do you usually compile C/C++ source code ? (Large code bases) [closed]

It's been quite some times since I began learning C and C++ but I've been very limited only to the Windows platform and the Visual Studio environment. Recently, I wanted to look into some open source ...
0
votes
1answer
141 views

What are the languages, objects, data types, operations and features for lower levels in a multilevel model of a computer system?

From Structural Computer Organization by Tanenbuam In a certain sense, a computer with n levels can be regarded as n different virtual machines, each one with a different machine language. We ...
3
votes
2answers
10k views

How does a DMA controller work?

From Section 5.1.4 Direct Memory Access in Modern Operating Systems by Andrew S. Tanenbaum, Herbert Bos, 2014, To simplify the explanation, we assume that the CPU accesses all devices and memory ...
5
votes
2answers
346 views

are multithreading, multiprocessing, multitasking implemented at instruction set or OS?

On a computer with a single cpu core, must a multithreading program be implemented based on an OS? Can it be implemented in the instruction set and run without an OS? Can multiple programs run in ...
27
votes
3answers
3k views

Kernel mode web servers: A clever optimization or a security nightmare?

I was reading a Hacker News thread where one user posts a link from 2011 explaining that IIS is much faster than most other (*nix) web servers. Another user replies, explaining that IIS gets that ...
3
votes
4answers
425 views

Does it make sense to say if an OS is Turing complete

The book "Modern Operating systems", says The Operating System is an Extended Machine. So I wonder if an OS is a model of computaion, and whether it makes sense to say if an OS is Turing ...
-1
votes
1answer
101 views

What differences are between “play-by-play”, design and implementation of an OS? [closed]

From two books' review Daniel Bovet and Marco Cesati. Understanding the Linux Kernel (2nd Edition or newer): Note: this book has some tendency to function as a play-by-play of what happens ...
0
votes
4answers
175 views

Why is there little use of filesharing as compression (outside of libraries)?

Recently I was looking for a program that will run as a daemon and find files that have the same size/type, check if they're the same, then make both a hard link to a single copy if they are. And I ...
1
vote
0answers
114 views

Concurrent Processes - Monitors and Reader/Writers

So this is a general question about the use of monitors in the Reader/Writers problem. I know the monitor procedures for the Readers/Writers problem are used for mutual exclusion to a critical ...
0
votes
1answer
354 views

What metadata do files contain? [closed]

I know when a file is created date information such as date created, last modified, last opened, is automatically updated as meta data on that file. Is there other meta data though? Specifically, is ...
2
votes
4answers
2k views

Why was Fortran never used to develop an Operating System?

I'm not a Fortran developer myself, but I'm about to use it a little and found myself wondering why, if it is much older than C but equally as performant as C, was it never used to develop any ...
1
vote
0answers
57 views

Semaphore : one for each shared resource?

Normally semaphores are implemented as integer variables. The value of a semaphore represents initially the number of processes that are allowed to access the shared resource at the same time, which ...
-2
votes
1answer
458 views

What are steps in making an operating system in C ? [duplicate]

I am trying to make an my own OS. This is for educational purpose only, so that I get to understand the internals as well as get a good idea of low level programming. I have some prior application ...
0
votes
1answer
115 views

How do processes communicate? [closed]

What transports/pipes/interops are available that most or all languages support across OSs? Not necessarily, network, but interprocess. Or is interprocess communication OS specific? I mean, for ...