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
2 answers

MOV BL,[AX] Error

Possible Duplicate: NASM 16bit Intel I am working on assembly code for simple microprocessor in microprocessor course. I am writing a program that:sums six elements, stored in memory starting from address 300, but ignores those that are 80 hex or…
0
votes
2 answers

How to Emulate a Dynamic Display in C Code

I have written a code which can convert any Input Integer to equlivalent LED Display. I want to pass my system's time as an Input to this Function and get an LED Display for the same. Example: Consider these 2 Inputs: (system time =…
Sandeep Singh
  • 4,941
  • 8
  • 36
  • 56
0
votes
1 answer

How to modify the text that a keyboard button echoes on to the screen in windows?

The idea behind this is to use a key combination in order to echo a very frequently used string. Say shift+backspace must echo to the screen "Thank you". I don't know where to start and what exactly to do. I have experience in…
Kish
  • 132
  • 1
  • 4
0
votes
2 answers

Synchronizing Parent & Child process

I want to synchronize the parent and child process to alternatively print 1 to 10 into a file. And output which process printed the number. The following code prints alternatively, but the same number. Please help me out! #include #include…
0
votes
1 answer

Communication process with two other processes

I read the following file (file.txt) line by line: 1 -5 6 -8 -33 21 The father sends negative numbers to a process, and sends positive numbers to a second process: #include #include #include #include…
ilias
  • 182
  • 1
  • 3
  • 13
-1
votes
3 answers

What is it meant by Console in windows programming?

I've got a problem with windows consoles... In windows api, does a console always has to be a screen or a keyboard or can it be any character buffer or something like a text file ? thanx If I be more specific, SetConsoleMode fnction in windows api…
psaw.mora
  • 868
  • 1
  • 7
  • 18
-1
votes
2 answers

System Design Question :Processing third party large file every night

Our application receives a large dataset(Ex 100 GB) from third party tool every night and we need to process it and feed it to our system by end of day. We are free to use any infrastructure but processing time should be as minimal as possible , Can…
monk_7
  • 17
  • 2
-1
votes
1 answer

Listing directory's files using open() and read() syscalls in POSIX systems

I was wondering how to do this. I have tried several things but nothing seems to work for me. I don't want to use opendir() syscall nor do i want to use readdir() system call. Could you please tell me how to do this because i get garbage values. I…
-1
votes
1 answer

Reopen an existing file descriptor with open("/dev/fd/n", mode)

I am studying in System Programming. If we call open("/dev/fd/n", mode), we duplicate the n-th file descriptor and assign to a new file descriptor. However, the mode we specify needs to be the subset of the referenced file (/dev/fd/n), and, I was…
-1
votes
1 answer

How to get HTTP response without using the HTTP library in Golang?

I am trying to learn systems programming. I was wondering how I could place a GET request for a URL without using any libraries like HTTP for the same. Any help would be much appreciated!
-1
votes
1 answer

Linux C forbid coredumps only for my program

Is it possible to forbid creation of coredumps only for my program? I know that it's possible to change behaviour for entire system using ulimit, but I'd like to block it only for my program. What should I code in my program? Maybe write some kernel…
Ivan Kush
  • 2,958
  • 2
  • 23
  • 39
-1
votes
1 answer

C Programming Fork Example

How many processes are created when running the following program ? I can not solve. I would appreciate if you help int main() { int i; for (i=fork(); i<2; i++ ) fork(); }
-1
votes
1 answer

How to install performance data helper

I am very new to c++ . I am trying to get performance data from a computer system like cpu utilization , memory , battery etc.. For that i looked up a link where it is suggested to use PDH . Performance Data Helper in windows . But i cannot find any…
-1
votes
1 answer

Using seek() in Python to delete contents of a text file

I'm trying to delete the contents of a text file till I find a specific string. This was one of the ways I thought was possible. My doubt is, when you move the pointer to the specific position, what happens to the rest of the data before the…
-1
votes
1 answer

Openmp parallel for loop syntax in linux C with pthreads

I had done the below code with openmp, but the function nvme_identify(fd, 0, 1, data); in turn invokes ioctl() which a blocking system call for nvme. So to have true parallelism I am looking to have the same code with pthreads. I am new to…