Questions tagged [systems-programming]

System programming is the activity of computer programming system software. The primary distinguishing characteristic of systems programming when compared to application programming is that application programming aims to produce software which provides services to the user, whereas systems programming aims to produce software which provides services to the computer hardware.

Wiki:

System programming is a kind of computer programming which is intended to design a system software. Systems programming is used to produce such softwares which provide services to the computer hardware. thus It requires a greater extent of hardware compatibility.

Implementing certain parts in operating system and networking requires systems programming, for example implementing Paging (Virtual Memory) or a device driver for an operating system. A System programming language like C, PL360, BLISS, D is usually used to for systems programming".

Usage:

The tag can be used for all system programming related problems. Stackoverflow is a question-answer website for programming related problems, for theoretical and other problems you can ask your system programming problems on https://www.superuser.com and https://programmers.stackexchange.com/

Read more:

408 questions
0
votes
0 answers

Simulate the disk I/O handling in system programming by a linked list

Very Stuck on a C project! Need help on the following requirements, any help is appreciated: IORB structure: Its data type is defined as: typedef struct iorb { int base_pri; struct iorb *link; char filler[100]; } IORB; where base_pri is an…
0
votes
0 answers

How can i know that process consumed heap , stack , data at linux

I need to know how much memory used by process in linux. I used FILE* file = fopen("/proc/self/maps", "r"); I read like this : 5606ee35c000-5606ee37d000 rw-p 00000000 00:00 0 [heap] 7fff502d9000-7fff502fa000 rw-p 00000000 00:00 0 …
Alperen
  • 1
  • 3
0
votes
4 answers

execvp command not running ls -l *.c

My execvp is not running ls -l *.c command. I have tried to use two methods : One with the file path where my ls is located which is in \bin\ls. #include #include #include int main(void) { char *cmdargs[] = {…
Vipul Sharma
  • 71
  • 1
  • 8
0
votes
1 answer

Pagetable nomenclature

While researching virtual memory, I sometimes see conflicting use of the nouns page table, page table entry, and page. For example "A page table is a table of pages..." and "A page table holds page table entries". My understanding of the…
0
votes
1 answer

Does user space program(runc) regulate the size of physical address space of a docker container process?

Below is the CloudFormation template to configure ECS task containers on AWS EC2 instance(Linux): TodobackendTaskDefinition: Type: "AWS::ECS::TaskDefinition" Properties: ContainerDefinitions: - Name: todobackend …
0
votes
3 answers

How are the sizes of pointers determined in computer systems? Via virtual or physical addresses?

I have an exam tomorrow on virtual memory address translation and I'm rather confused on this topic. I know the CPU will generate a virtual address to then access a physical address. So if we have a system with 32 bit virtual addresses, and 64 bit…
0
votes
1 answer

How to make synchronism between two distinct C programs?

First of all, I don't know if I can explain well my problem or you can get it in the appropriate way. But I will try to make it clear for you. In fact, I have two different C programs. The first one is a simple loop print of a message on the console…
gaston
  • 405
  • 5
  • 22
0
votes
1 answer

How to modify my C code in order to not to stay in an infinite loop?

I have developped a C program for my embedded Board. This program make the green LED lights on when I push and release the BUTTON. The green LED is defined under "/sys/class/leds" and the BUTTON is under "/dev/input/event0". This is the code…
gaston
  • 405
  • 5
  • 22
0
votes
0 answers

Getting granted access to a handle

A client creates or opens a file, I'm injecting into the client and getting a handle of the file. From the handle can I get "desired access" the client provided to "CreateFile" function when calling CreateFile or OpenFile functions? I want to open…
Melina Golez
  • 164
  • 2
  • 10
0
votes
1 answer

Creating daemon process in UNIX enviroment

I have picked the following example from APUE : void daemonize(const char* cmd) { int i,fd0,fd1,fd2; pid_t pid; struct rlimit r1; struct sigaction sa; //clear all file masks umask(0); //get…
Naveen
  • 7,944
  • 12
  • 78
  • 165
0
votes
1 answer

Why program is executed on Memory not HardDisk?

when I study in Computer Architecture and System Programming, some question rises up. First of all, program is in SSD or Hard Disk but when it executed, this load to memory(RAM). Why program is not executed on HardDisk directly?? Why need to load on…
0
votes
1 answer

Application of structural programming

A brief idea about application of structural programming technique in the construction of system software? is it top-down Analysis or modular programming? or something else ?
0
votes
1 answer

How does a parent process read a FIFO after the child process finished the writing that FIFO?

I have a very simple basic program that has two process first one is parent and second one is child. Child process should write some stuff to the FIFO. After all writing jobs finished(after the child is terminated). Then parent process should read…
javac
  • 441
  • 4
  • 20
0
votes
1 answer

Segmentation fault (core dumped) while trying to write integers into Shared Memory in C

I'm trying to use shared memory between processes. I'm just implementing the features step-by-step. I keep getting Segmentation fault (core dumped) while I try to write something into it. int* ms; // Pointer for milliseconds int* ns; // Pointer for…
0
votes
1 answer

Systems programming qemu: unknown keycodes `(unnamed)'

I am trying to run qemu with code that my teacher provided so that we are able to work on our assignment. This is being run in Ubuntu 18.04 LIBPATH=/usr/lib/gcc/arm-none-eabi/6.3.1/ arm-none-eabi-as -mcpu=arm926ej-s -g ts.s -o…