Tag Info

New answers tagged

4

ANSI escape sequences aren't supported by all terminals; the most common case you'll come across is a remote session that doesn't support color, where the terminal emulatior will attempt to display the color escape sequences. You definitely should be using a terminal/textual user interface (TUI) library (you may also see them called "console user interface" ...


1

This question is too broad; there are too many factors that could contribute to the fluctuations in the time taken to execute some source code. The poorly-written question also doesn't help - it is unclear whether the asker is more interested in knowing the possible factors that affect nanoscopic performance (on the order of 1 - 10 CPU instructions) or ...


2

Modern CPUs don't do one instruction at a time. Instead, they might be decoding one group of instructions while an earlier group are waiting for dependencies and waiting to be sent to execution units, while even earlier instructions are being executed, while even earlier instructions are being retired (committed to state). It's (literally) a pipeline of ...


1

The intuition behind unikernels as possible with OpenMirage (a.k.a. MirageOS) is that you code a specialized "kernel" like program (running nearly on the bare metal, but actually) for some hypervisor like Xen which would run several dozens of such unikernels. Notice that OpenMirage unikernels share very little code (AFAIK, none) with Linux kernel (since ...


7

Asking why microcontrollers like the AVR family let you twiddle the pins directly when an operating system like Linux requires device drivers is an apples-to-suspension-bridges comparison. Microcontrollers are typically single-threaded free-for-alls with no supervisor (OS) and all code has full access to memory, I/O and anything else the chip offers. This ...


3

The main answer is uniformity - if your device is a webcam, you can expose a C library and tell every application that to receive images from your cam, they can easily write to your custom API. I guarantee you will not have a working webcam in any application other than the ones you write! That's typically why you abstract hardware behind a device driver - ...


3

No, you can never exceed 4GiB of simultaneously addressable memory for a 32-bit binary. Usually, the kernel takes half and you are left with 2GiB user. Some kernels support a compromise split of 1GiB/3GiB. However, you can ask the OS to map different portions of a file into memory at different times, essentially performing time multiplexing of the available ...



Top 50 recent answers are included