This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
Previous Results
Multiple Data Compression and Encryption using iterative Technique. B100
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression5.c,v
Working file: Compression5.c
head: 1.11
branch:
locks: strict
abhi: 1.11
access list:
…
by
cabhishek029
July 2017
001 C Programming, Data Structures
permalink
IPC Thread/mutex semaphore
We have a process ID 0 as well !!! [Explained]
We may use "ps -eaf" to list all processes this way:
[root@localhost]# ps -eaf
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 22:01 ? 00:00:01 /us…
by
sankalpnegi2310
July 2017
Query
permalink
Multiple Data Compression and Encryption using iterative Technique. B100
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression3.c,v
Working file: Compression3.c
head: 1.6
branch:
locks: strict
abhi: 1.6
access list:
symboli…
by
cabhishek029
July 2017
001 C Programming, Data Structures
permalink
project 01 C_programming
@shub.sharma007
A segmentation fault, is a memory error in which a program tries to access a memory address that does not exist or the program does not have the rights to access.
There can be several reasons for this but everything boils down t…
by
sankalpnegi2310
July 2017
Pravjot Sir Classes
permalink
Multiple Data Compression and Encryption using iterative Technique. B100
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
----------------------------
revision 1.9 locked by: abhi;
date: 2017/07/11 16:58:50; author: abhi;
state: Exp; lines: +…
by
cabhishek029
July 2017
001 C Programming, Data Structures
permalink
Multiple Data Compression and Encryption using iterative Technique. B100
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression5.c,v
Working file: Compression5.c
head: 1.2
branch:
locks: strict
abhi: 1.2
access list:
symboli…
by
cabhishek029
July 2017
001 C Programming, Data Structures
permalink
pipes
Some basic concepts on pipes that will clear your doubts :
Fork() call is used to generate a child process, which by system procedure shares all stack data from parent (shared stack), hence open file descriptors (which basically are numbers...and…
by
sankalpnegi2310
July 2017
Pravjot Sir Classes
permalink
Multiple Data Compression and Encryption using iterative Technique. B100
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression.c,v
Working file: Compression.c
head: 1.13
branch:
locks: strict
abhi: 1.13
access list:
symboli…
by
cabhishek029
July 2017
001 C Programming, Data Structures
permalink
B97 : C, Pointers and Data Structures
Storage Classes in C
Storage Classes are used to describe about the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace the existence of a particular variable during the run…
by
sankalpnegi2310
July 2017
Pravjot Sir Classes
permalink
Multiple data compression and encryption
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: Compression.c,v
Working file: Compression.c
head: 1.5
branch:
locks: strict
abhi: 1.5
access list:
symbolic …
by
cabhishek029
July 2017
Pravjot Sir Classes
permalink
Multiple data compression and encryption
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: declaration.h,v
Working file: declaration.h
head: 1.1
branch:
locks: strict
abhi: 1.1
access list:
sym…
by
cabhishek029
July 2017
Pravjot Sir Classes
permalink
Multiple data compression and encryption
pre.cjk { font-family: "WenQuanYi Zen Hei Sharp",monospace; }p { margin-bottom: 0.1in; line-height: 120%; }
RCS file: declaration.h,v
Working file: declaration.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:…
by
cabhishek029
July 2017
Pravjot Sir Classes
permalink
This code will shutdown your system??????
This code is basically trying to kill the parent process, so when it hits real parent of the child the parent will run the signal handler, setting a default signal handler for the next signals of SIGINT type.So any next SIGINT will kill the real par…
by
sankalpnegi2310
July 2017
Query
permalink
Pointer to an array and Array to pointer
Pointer to array vs Array of Pointers
A Pointer to an array means it is a variable (pointer variable) that holds the address of the array, which will be the first byte of the allocated array space, or the address of the first element of that arra…
by
sankalpnegi2310
June 2017
001 C Programming, Data Structures
permalink
B97 : C, Pointers and Data Structures
Why we specify datatypes for pointers ??
a pointer variable is a variable that stores the address of another variable, where addresses have fixed size (OS dependent), so thier type should be "address type" for any kind of pointerThis is…
by
sankalpnegi2310
June 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
How exactly are we supposed to write semop() for an array of (say) 2 binary semaphore variables ??
In my opinion the only change need to be made is the sem_num value of the "union semun" that basically specifies the no of semaphore bei…
by
sankalpnegi2310
June 2017
Pravjot Sir Classes
permalink
B97 : C, Pointers and Data Structures
Solving getchar issue using terminals
Issue with getChar can also be resolved by controlling terminals. By default our shell works in canonical mode(icanon), however we can use non-canonical mode (-icanon) and lim…
by
vishwajeet.gaur1989
June 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
FIFO - First in, First out
( A mechanism to enable various processes share the common buffer for reading/writing data)
They are like temporary storage locations/buffers that enable more than one process to communicate with each other via data sh…
by
sankalpnegi2310
June 2017
Pravjot Sir Classes
permalink
B97 : Project.03 Linux System Programming using Processes, IPC, Sync & Threads
Process Hijacking by another process - exec() sys call
exec() sys cal can be used to hijack the entire process by replacing the process context of the original calling process with a new one, thus the PID PPID of the new process doesn't chan…
by
sankalpnegi2310
May 2017
Pravjot Sir Classes
permalink
Embedded Lovers : B 97 :Work log /Useful Information only --NO QUERIES PLZ--
Script to display the contents of current directory via 'ls -alt' by iterating through each line of text using IFS value as '\n'. number at last displays total iterations or basically no of files/dir.
#! /bin/bash
#IFS=$…
by
sankalpnegi2310
May 2017
Query
permalink
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