I was executing a code given in the notes, but I thinke there's some more to add into it:-define _GNU_SOURCE
#include
#include
#include
#include
#include
#define CHILD 1
#define PARENT 2
#define…
A zombie process is created when the parent process gets executed much longer than the child, resulting in abnormal termination of child by the process having PID 1 or the init . Zombie processes mus…
Copy on write,basically implies that when a fork is done, it is assumed that the parent's VAS is copied to the process, but it is not the actual case, as if it was like that, it would be creatin…
I am working on c++ assignment 5, and am getting infinite loop there:-,here is the code for main:-#include"headers.h"
#include"declarations.h"
int main(){
Convert c1;
Convert c2(…
I was trying to convert uppercase to lowercase, but am encountering segmentation fault while executing the codeBElow is the code:-#include
#include
#include
int main(){
char a[10];
int i;
printf(&q…
printf prints to screen
when we close fd(1) - standard output
after we duplicate fd for file
how to write into duplicated fd using printf
pls suggest soln.
Process context :
Process context consists of following:
Command line arguement: This block accepts all the values passed by the programmer. It also contains environment variables.
Stack: Used for st…
Hello everyone, I was working on this code, but am not getting the desired output:-Here's the code:-getArray.c
#include"headers.h"
#include"declarations.h"
int** getArray(){
…
my code is:
-----> dataStructures.h
typedef struct node
{
int info;
struct node *next;
}Node;
------> createLL.c : // create a Linked List
#include "headers.h&…
Guys,
for using RCS
The integrity lies in the sequence of execution of these 3 steps1. ci filename (checkin filename)2. co filename (checkout filename)
3. co -l filename (checkout filename with lock)…
Iam trying running this code and though its running, but macro isn't being called.Here is the code:-void* mainMenu(void *arg)
{
int i;
#ifdef DEBUG
printf("%s: Begin.\n",__fun…
Hi everyone, Iam having an error while executing this code:-The error is:-/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: in function `_start':
(.text+0x24): undefined…
Iam getting this error :- /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/crt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld r…
Sir,
I wanted to ask whatever keywords we are going to have embedded into the ,v files (comma v files) i.e. RCS workfiles , ( hereby referring to two types of files working file and RCS file) i thi…
I was trying to compile the code given in a document, which is not compiling,Here is the code:-#include
#include
typedef struct
{
int day;
int month;
int year;
}Date;
//struct date Dob;
void printDat…
q4.c:16:1: error: expected ‘,’ or ‘;’ before ‘printf’
16 | printf("sum of a and c is % d+ %c = %d \n",a,c,Ac);
| ^~~~~~
This is the error Iam encountering in my code and this e…
Iam unable to compile my makefile, though according to me, I have entered the correct code. IF anyone can point out what Iam doing wrong,please do point out, your help will be appreciated.This is my …
Please help me with algorithms of count frequency of each elements in an array.
I am using two loop and first is store the array elements and second is compare the each elements one by one
In computing, a device driver (commonly referred to as simply a driver) is a computer program that operates or controls a particular type of device that is attached to a computer. A driver provides a…
System
programming is the activity of programming system software. The
systems programming aims to produce software which provides services to
the computer hardware. It requires a greater degr…
On Fedora. Using TerminalInstalling Chrome using Terminal
The additional repositories can also be managed using a terminal and DNF.
Install Third Party Repositories
$ sudo dnf instal…
Linux Network Programming is all about using Linux for designing, configuring, maintenance, troubleshooting and upgrading the network, infrastructure and protocols. It also involves programming netw…
Process context:
Process is a active
entity, it needs certain resources- including CPU time, memory files and I/O devices to accomplish its task.
Each processor
stored suffi…
To stop Fedora to automatically download and install system and software updates on restart?
dnf is a background service that updates the repository metadata automatically. dnf makecache is scheduled…
Please put your queries, doughts, clarifications or suggestions for Session: 07.ControlStructures_LoopsAndIterations and 08.ControlStructures_LoopsAndIterations here...
Write a program to implement a simple library inventory management system, where the inventory consists of books, periodicals, and DVD's, each of which may be checked-out by a library patron.
All queries, discussions, updates and clarifications related to...Session 14,16,18,19.Structured Programming Using Functions And Pointersshould be posted here.
Hi All,
I am confused in design for client-server project.i tried client-server application with pipe but facing lots of issues.please let me know how should i try client-server application with pipe…
The maximum number of threads is calculated through:
max_threads = totalram_pages / (8 * THREAD_SIZE / PAGE_SIZE);
(defined in kernel/fork.c, called by init/main.c)
PAGE_SIZE is architecture speci…