Skip to main content

All Questions

Tagged with or
2 votes
0 answers
77 views

I Am implementing Lockless ring buffer for multiple producer and single consumer (keeping in plan to extend it to multiple produce and consumer) using design reference of dpdk buffer : https://doc....
vinit Tirnagarwar's user avatar
0 votes
1 answer
24 views

I am reading about blocking memory allocation idea in book Real time concepts in embedded systems by QingLi. A blocking memory allocation function can be implemented using both a counting semaphore ...
venkysmarty's user avatar
  • 11.5k
-1 votes
0 answers
88 views

Here is the code: void (*volatile sys_func)(void); void main(int argc, char **argv) { int i, j; for (j = 0; j < 3; ++j) { for (i = 0; i < 10000; ++i); sys_func(); } ...
chav1s's user avatar
  • 47
0 votes
0 answers
38 views

am currently working on an assignment to simulate and analyze the performance of various CPU scheduling algorithms (such as FCFS, SJF, and Round Robin). I was given a list of workload scenarios to ...
TBOYT's user avatar
  • 1
2 votes
1 answer
87 views

During debugging of some native code, I jumped into the assembly of calloc() on my MacOS (ARMv8). And I see some interesting technique, that seems to be checking if the instructions are defined at ...
Stanislav Bashkyrtsev's user avatar
Advice
0 votes
2 replies
77 views

I have a mini-project in which the objective is to simulate the movement of multiple robots (threads) on a 2D matrix (shared resource), using semaphores to ensure mutual exclusion when accessing the ...
bunsellerboy's user avatar
Advice
0 votes
0 replies
34 views

On Linux, I can use tools like vmstat 1 2 or read from /proc/stat to measure the total and average number of context switches over a given time interval (for example, 1 second). Is there an equivalent ...
Ayush Sharma's user avatar
Advice
1 vote
0 replies
36 views

I am implementing an EXT2 filesystem driver and trying to understand the purpose of block group descriptors. From the superblock, I already know: s_blocks_per_group - number of blocks in each block ...
Zero's user avatar
  • 23
1 vote
1 answer
58 views

I'm building a small practice OS, I'm writing linker scripts and using ld to produce ELF files that my OS loader will load manually. Here’s my current understanding of the loading process for ELF ...
zen's user avatar
  • 45
3 votes
1 answer
179 views

I was reading an article on the Memory Layout of C Programs; https://www.geeksforgeeks.org/c/memory-layout-of-c-program/. It mentioned, under "4. Stack Segment": When the stack and heap ...
Supreeto's user avatar
  • 339
3 votes
0 answers
161 views

This CPU Usage (Precise) view below seems to indicate that this thread's quantum is expiring after only 0.012 milliseconds on row 19. Rows 6 and 29 look normal with a 15 millisecond thread quantum ...
Marc Sherman's user avatar
  • 2,413
1 vote
1 answer
107 views

I am working on an assembly kernel, using the OSDev Wiki and a PDF from Nick Blundell. I have set up my GDT and it seems to work fine. I am also able to load the IDTR as well. However, when I try to ...
HAXBABA's user avatar
  • 35
1 vote
0 answers
82 views

I would like to run a single-threaded program in MacOS 26.0 at the highest QOS level (QOS_CLASS_USER_INTERACTIVE), in order to get more consistent performance on a compute-bounded benchmark. By ...
George Hodgkins's user avatar
-1 votes
1 answer
214 views

void bootmain(void) { struct Proghdr *ph, *eph; // read 1st page off disk readseg((uint32_t) ELFHDR, SECTSIZE*8, 0); // is this a valid ELF? if (ELFHDR->e_magic != ELF_MAGIC) ...
Fw120's user avatar
  • 15
1 vote
1 answer
91 views

If a directory contains broken or unresponsive mount points (for example, FUSE or NFS mounts), standard tools like file managers, or even a simple ls from the command line, can hang forever when ...
Jens Harms's user avatar

15 30 50 per page
1
2 3 4 5
922