systems-programming Questions

5

Solved

I'v some questions about zombie processes what the benefits from zombie process concept? know that the kernel keeps (PID,termination status, resource usage information) for zombie process what's...
Deice asked 4/10, 2010 at 17:21

3

I am trying to understand how can I make my program a daemon. So some things which I came across are in general, a program performs the following steps to become a daemon: Call fork(). In the par...
Tanker asked 21/3, 2011 at 21:48

4

Solved

I'm currently training for an OS exam with previous iterations and I came across this: Implement a "N Process Barrier", that is, making sure that each process out of a group of them wait...

2

Solved

Here is a example that maps a given file to memory using mmap function. In this example, I didn't use fwrite or write function to write something into a disk file(just print contents to stdout), bu...
Changsha asked 24/1, 2021 at 12:23

3

Solved

Overview I have a program bounded significantly by IO and am trying to speed it up. Using mmap seemed to be a good idea, but it actually degrades the performance relative to just using a series of...
Mentally asked 19/5, 2011 at 8:31

5

I spent the last days reading through man pages, documentations and anything else google brought up, but I suppose I'm even more confused now than I was at the beginning. Here is what I want to do...

1

Solved

The implementation of copy_user_enhanced_fast_string in the Linux Kernel copy routine uses stac/clac in the epilog and prolog. perf annotate shows the following code: stac cmp $0x40,%edx jb 0xfff...
Intersidereal asked 7/3, 2020 at 15:10

9

Solved

In a Systems Programming class I took this previous semester, we had to implement a basic client/server in C. When initializing the structs, like sock_addr_in, or char buffers (that we used to send...
Keyboard asked 13/6, 2013 at 21:0

7

Solved

What happens to an open file handle on Linux if the pointed file meanwhile gets: Moved away -> Does the file handle stay valid? Deleted -> Does this lead to an EBADF, indicating an invalid file h...
Augustina asked 8/1, 2010 at 16:9

2

Solved

I read cat /proc/[pid]/maps gives the informaion about its address space. So I want to write a program which will print its own address space. My program is this; pid_t pid; int fd; char *buf;...
Elute asked 24/10, 2013 at 14:12

2

Solved

Several of the resources I've gone to on the internet have disagree on how set associative caching works. For example hardware secrets seem to believe it works like this: Then the main RAM mem...

2

Solved

I have a third-party console application. I need run it from my application but I cannot run it as a separate process (because I need to work with its dependencies: fill Import tables manually, set...

5

Solved

In a terminal I can call ls -d */. Now I want a c program to do that for me, like this: #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <unistd.h> ...
Multidisciplinary asked 10/9, 2016 at 19:24

1

Solved

I had seen a source where array initialize in int arr[3] ={0,}; What does it mean ? I normally use this format int arr[3]={0}; can i know what is the difference
Byrom asked 20/7, 2016 at 3:38

5

The posix standard specified that when write less than PIPE_BUF bytes to pipe or FIFO are granted atomic, that is, our write doesn't mix with other processes'. But I failed to find out how standard...
Mannuela asked 24/8, 2012 at 14:15

3

Solved

I used readelf --dyn-sym my_elf_binary | grep FUNC | grep UND to display the dynamically imported functions of my_elf_binary, from the dynamic symbol table in the .dynsym section to be precise. ...
Subsolar asked 15/5, 2015 at 16:43

4

Solved

Following discussion from this question about null pointers in C and C++, I'd like to have the ending question separated here. If it can be inferred from C and C++ standards (answers can target bo...
Tammietammuz asked 18/2, 2015 at 0:52

3

Solved

Ok, guys, I think that's the right place to ask a question, because it's all about development(if I'm wrong or it's duplicate question, please tell me). So, I want to dive deep in Android, u...
Submarine asked 29/6, 2012 at 13:36

4

Solved

I'm just wondering that there are different functions in different OSs, but they serve the same purpose, or it can be said that different OSs have different system programming languages (like that ...
Toluene asked 18/12, 2014 at 11:1

6

Solved

Why does this program print “forked!” 4 times? #include <stdio.h> #include <unistd.h> int main(void) { fork() && (fork() || fork()); printf("forked!\n"); return 0; }
Kenji asked 3/11, 2014 at 14:30

6

Solved

Why does this program print “forked!” 4 times? #include <stdio.h> #include <unistd.h> int main(void) { fork() && (fork() || fork()); printf("forked!\n"); return 0; }
Cringle asked 3/11, 2014 at 14:30

4

How is fork system call code written . I want to know some details how a function can return two different values and that to two different processes . In short want to know how fork system call is...
Loveinamist asked 13/1, 2012 at 22:2

1

Solved

I am attempting to write a hook which will catch "SomeFunction" of Process Explorer that suspends process. I already have a solution which hooks functions such as SuspendThread and NtSuspendThread....
Sulfide asked 6/8, 2014 at 13:3

1

Solved

I am trying to hook a method using: findAndHookMethod("com.android.keyguard.KeyguardPatternView.UnlockPatternListener", lpparam.classLoader, "onPatternDetected", new XC_MethodHook() Where Unloc...
Gablet asked 20/3, 2014 at 9:42

2

Solved

I was looking at some libraries with dumpbin and I noticed that all the 64-bit versions were linked to KERNEL32. Is there no KERNEL64 on 64-bit Windows? If not, why? All my operating systems are 3...
Anaconda asked 1/9, 2009 at 21:29

© 2022 - 2024 — McMap. All rights reserved.