New answers tagged operating-system
0 votes
Segmentation article in Wikipedia
I'd rather say fragmentation is a state of memory which is caused because of allocations, reallocations and deallocations. It is the condition where memory appears to have been split into non-...
0 votes
fork in multi-threaded program
Forking inside a multithreaded program is risky because fork() only copies the calling thread into the child, not the other threads. The child receives a snapshot of memory, including mutex states, ...
2 votes
Parsing /proc/meminfo using read() in C gives incorrect RAM values
There are enough comments concerning your approach and architecture. Therefore this answer just pinpoints the actual error. Condensed to the relevant structure, your program looks like this: int main(...
Advice
0 votes
0 replies
0 views
Does an interrupt occur when a process goes from running -> terminated?
I've been working with the Zephyr RTOS kernel for several years and I can say that the answer to your question (for Zephyr at least) is a definite "maybe", because it is going to depend upon ...
2 votes
Parsing /proc/meminfo using read() in C gives incorrect RAM values
Here's code from my personal library. It might give you some ideas for your implementation. One special feature is the switch that reacts to the length of the keywords. This optimization is intended ...
Top 50 recent answers are included
Related Tags
operating-system × 13821c × 2339
python × 1998
linux × 1869
windows × 854
multithreading × 782
c++ × 743
kernel × 713
process × 709
assembly × 673
java × 634
linux-kernel × 575
memory-management × 548
unix × 485
memory × 424
x86 × 407
macos × 391
file × 355
system-calls × 318
python-3.x × 302
filesystems × 293
interrupt × 280
fork × 276
android × 274
virtual-memory × 272