Skip to main content

New answers tagged

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-...
WedaPashi's user avatar
  • 3,942
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, ...
Aourfi Idir's user avatar
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(...
the busybee's user avatar
  • 13.4k
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 ...
Sparky's user avatar
  • 14.3k
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 ...
Wiimm's user avatar
  • 3,839

Top 50 recent answers are included