This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
17: Proper Error Handling with exec
17: Proper Error Handling with execWhy is it important to use an if condition to check whether the exec API failed, instead of writing code immediately after the exec call as the failure case? Illustrate your answer with an example.
by
pravjot
May 31
003.04.91.Interview-Questions-Process-Replacement
permalink
2. Describe the significance of the Power-On Self-Test (POST) in the BIOS/UEFI phase
When we turn on the computrer the first software that runs is BIOS/UEFI .it performs the power on self test which is commonly known as POST .POST does couple of tasks which are mentioned below
1.verify the hardware components and peripherals2.ca…
by
utkarshraj273
April 14
009.01.Linux Boot Process
permalink
08.Binary Search Trees. Operations
Detailed algorithm for Inserting a Node into BST1. Initialize variables :tree: Represents the root of the binary search tree.new: Represents the new node to be inserted.crr: Represents the current node during traversal.parent: Represents the parent…
by
mohdmohsinkhanee
January 3
101 Advanced Data Structures using C
permalink
Making pattern
Hi Gaurav,
Try to print the pattern in two sections: Upper half followed with lower half, it would be easier to print. But remember that total number of lines in the output is 9, so consider this condition carefully.
Hint: Use if and else condit…
by
mohdmohsinkhanee
November 2023
Query
permalink
Understanding Race Condition in Multi-threading: A Practical Example
Race Condition: A race condition is realized when more than one thread tries to write to the same variable simultaneously. Since we don't know which thread will access the variable first, we can't safely predict what will happen. All thre…
by
mohdmohsinkhanee
November 2023
Pravjot Sir Classes
permalink
Doubt in do while loops.
Let us talk about the differences between while(1) and while(0) in C language. The while(1) acts as an infinite loop that runs continually until a break statement is explicitly issued. The while(0) loop means that the condition available to us will …
by
mohammaduvais143
May 2023
001 C Programming, Data Structures
permalink
Recursive error
give a control to exit from recursion, any increment or decrement variable or any checking condition
by
nirmalpg124
January 2023
Pravjot Sir Classes
permalink
Write A C++ Program for...
class prime{ private: int num; int prm = 3; public: int findPrime();};int prime::findPrime(){ int count = 0; cout
by
deepak4u106
May 2021
002 OOPs using C++ with Eclipse on Linux
permalink
Write A C++ Program for...
NOTE : In the case of first prime number that is '2' this condition not gonna satisfy./** * file : main.cpp * author : deepak_jangra * created : 2021 May 16 11:16:31 IST * lastMod : Sunday 16 May 2021 11:16:31 A…
by
deepak4u106
May 2021
002 OOPs using C++ with Eclipse on Linux
permalink
25.MultiIndexed Arrays With Pointers
please show the meaning of null pointer.
example-->
int *krr;krr=(int*)malloc(sizeof(int)*size);if(krr==NULL){perror("malloc");exit(EXIT_FAILURE);}
if(krr==NULL) //condition is true when i give size = -1.
compiler are show the re…
by
ayushdhiman117
May 2021
001 C Programming, Data Structures
permalink
25.MultiIndexed Arrays With Pointers
In second nested loop where row lies between "r/2" to "r"the second condition should increase by 1 in first iteration and 2 in second iteration and 3 in third iteration.
In 2-D arrays we are assigning the value at positions ie 2…
by
deepak4u106
April 2021
001 C Programming, Data Structures
permalink
25.MultiIndexed Arrays With Pointers
Change the check condition in second nested loop , in the nested loop change j
by
jagjeet.singh9650
March 2021
001 C Programming, Data Structures
permalink
32.Condition Variables
You are invited to put in all queries/resolutions/advice/articles/discussion related to32.Condition Variableshere...
by
spatlou
July 2020
303 Linux System Programming
permalink
Character Device Driver from Scratch
Facing error while compiling
[root@localhost file_operation]# makemake -C /lib/modules/5.2.17-200.fc30.x86_64/build M=/home/nikesh/device_driver/file_operation modulesmake[1]: Entering directory '/usr/src/kernels/5.2.17-200.fc30.x86_64' …
by
nikeshkumarvedik
May 2020
005 Character Device Drivers Development
permalink
Queue DS
Project : Queue
Autor: Sajan Kumar Jha
Description : This project best explains the working of data handling
in queue structure.Since we know that queue is a data structure which
follows the FIFO algorithm.Here we have used a struct which has …
by
sajanjha173
January 2018
Pravjot Sir Classes
permalink
Queue DS
Project : Queue DS
Autor: Sajan Kumar Jha
Description : This project best explains the working of data handling
in queue structure.Since we know that queue is a data structure which
follows the FIFO algorithm.Here we have used a struct which…
by
sajanjha173
January 2018
Query
permalink
B97 : Device Driver Development
Synchronization in Device Drivers(Semaphores)Many processes run in the user space and can access the code in anyway. The kernel code is preemptible,means at any time kernel can lose processor.Since many processes can access the driver at same time ,…
by
saurabh.hmr009
August 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
Banker’s Algorithm [Avoiding Deadlocks]
Bankers’s Algorithm is resource allocation and deadlock avoidance
algorithm which test all the request made by processes for resources, it
check for safe state, if after granting request system remains in…
by
sankalpnegi2310
August 2017
Pravjot Sir Classes
permalink
B97 : C, Pointers and Data Structures
My algorithm for quick sort :
quicksort(int *ptr, int beg, int end) // func. begins
{
Loop (iterate from beg -> end)
{
Keep parsing the elements till we find an element larger than pivot.When that is found, store the index for boun…
by
sankalpnegi2310
July 2017
Pravjot Sir Classes
permalink
Multiple Data Compression and Encryption using iterative Technique. B100
RCS file: createmasterarray.c,v
Working file: createmasterarray.c
head: 1.20
branch:
locks: strict
root: 1.20
access list:
symbolic names:
keyword substitution: kv
total revisions: 20; selected revisions: 20
description:
array …
by
somani.1996rahul
July 2017
001 C Programming, Data Structures
permalink
More Results
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership