posix
Get instruction pointer on segmentation fault or crash (for x86 JIT compiler project)?
I\'m implementing the backend for a JavaScript JIT compiler that produces x86 code. Sometimes, as the result of bugs, I get segmentat开发者_JAVA百科ion faults. It can be quite difficult to trace back[详细]
2023-03-28 17:36 分类:问答Go back to Previous Directory in Linux using a C program
I am in the directory /home/destination I need to go back to the /home directory. Any ideas on how to implement this using a C-prog开发者_如何学Goram?A program can only change its own environment. Thu[详细]
2023-03-28 11:29 分类:问答Design Problem: Thread safety of std::map
I am using std::map to implement my local hash table, which will be accessed by multiple threads at the same time.[详细]
2023-03-28 05:23 分类:问答Other methods to exploit the poll() function (user-space)?
I\'m trying to find better methods to handle the events of a polled socket (fd). I\'m stuck on this to exploit the poll() function with a different pollfd like this:[详细]
2023-03-27 18:25 分类:问答CPU time after the process finished
Is there a function in Linux which allows me to see how much CPU did a process use after it finished? I need something simila开发者_StackOverflow中文版r to bash \"time\" command. I am fork()ing the pr[详细]
2023-03-27 17:07 分类:问答Unix c program to list directories recursively
I am working on a POSIX C learning exercise that involves recursively listing files/folders in a specified directory. The program takes in as arguments of one or more directories. I can list the conte[详细]
2023-03-27 08:06 分类:问答Is there a tool already to draw flow charts and diagram strictly for terminals?
I want to draw stuff either on ema开发者_StackOverflow中文版cs or vim, or even in the Terminal directly[详细]
2023-03-26 21:24 分类:问答POSIX signal behavior
If a process is currently stopped due to a SIGTRAP signal and it is se开发者_StackOverflownt a SIGSTOP signal via kill(), what would be the default behavior? Would the SIGSTOP be a pending signal that[详细]
2023-03-26 11:16 分类:问答Can a correct fail-safe process-shared barrier be implemented on Linux?
In a past question, I asked about implementing pthread barriers without destruction races: How can barriers be destroyable as soon as pthread_barrier_wait returns?[详细]
2023-03-25 08:25 分类:问答Question on using multithreading to periodically and forcefully check for updates on software
I\'m working on an application that has a main thread performing some work (message loop of the UI etc.), but I would also like a second thread, which would periodically test if there are any updates[详细]
2023-03-25 07:44 分类:问答