EmbLogic's Blog

intro_shared_memory_prog.

RCS file: intro_shared_memory_by_fork.c,v
Working file: intro_shared_memory_by_fork.c
head: 1.36
branch:
locks: strict
emblogic: 1.36
access list:
symbolic names:
keyword substitution: kv
total revisions: 36; selected revisions: 36
description:
This is my frist program to know the use of shared memory.
We frist get shmid to the kernal.
—————————-
revision 1.36 locked by: emblogic;
date: 2015/10/25 08:29:39; author: emblogic; state: Exp; lines: +3 -4
Change some.
—————————-
revision 1.35
date: 2015/10/25 08:21:58; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.34
date: 2015/10/25 08:21:29; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.33
date: 2015/10/25 08:21:02; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.32
date: 2015/10/25 08:20:34; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.31
date: 2015/10/25 08:19:59; author: emblogic; state: Exp; lines: +1 -0
Print the value inside the parent which write in child.
—————————-
revision 1.30
date: 2015/10/25 08:19:25; author: emblogic; state: Exp; lines: +1 -0
Add the fork header file.
—————————-
revision 1.29
date: 2015/10/25 08:17:11; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.28
date: 2015/10/25 08:17:01; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.27
date: 2015/10/25 08:16:46; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.26
date: 2015/10/25 08:15:49; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.25
date: 2015/10/25 08:15:24; author: emblogic; state: Exp; lines: +3 -3
*** empty log message ***
—————————-
revision 1.24
date: 2015/10/25 08:14:55; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.23
date: 2015/10/25 08:14:41; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.22
date: 2015/10/25 08:14:19; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.21
date: 2015/10/25 08:14:01; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.20
date: 2015/10/25 08:13:39; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.19
date: 2015/10/25 08:13:13; author: emblogic; state: Exp; lines: +2 -2
Print the data.
—————————-
revision 1.18
date: 2015/10/25 08:12:35; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.17
date: 2015/10/25 08:12:04; author: emblogic; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.16
date: 2015/10/25 08:11:42; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.15
date: 2015/10/25 08:10:29; author: emblogic; state: Exp; lines: +1 -0
*** empty log message ***
—————————-
revision 1.14
date: 2015/10/25 08:10:08; author: emblogic; state: Exp; lines: +1 -2
*** empty log message ***
—————————-
revision 1.13
date: 2015/10/25 08:09:07; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.12
date: 2015/10/25 08:08:08; author: emblogic; state: Exp; lines: +2 -1
*** empty log message ***
—————————-
revision 1.11
date: 2015/10/25 08:07:34; author: emblogic; state: Exp; lines: +0 -1
*** empty log message ***
—————————-
revision 1.10
date: 2015/10/25 08:06:25; author: emblogic; state: Exp; lines: +2 -2
*** empty log message ***
—————————-
revision 1.9
date: 2015/10/25 08:05:29; author: emblogic; state: Exp; lines: +5 -5
*** empty log message ***
—————————-
revision 1.8
date: 2015/10/25 08:04:50; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.7
date: 2015/10/25 08:04:23; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.6
date: 2015/10/25 08:02:52; author: emblogic; state: Exp; lines: +2 -1
Move index the shared memory because data do not overwrite on that data which write inicially.
—————————-
revision 1.5
date: 2015/10/25 08:02:15; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.4
date: 2015/10/25 08:00:38; author: emblogic; state: Exp; lines: +11 -0
Use the signal
By the help of signal we write data in shared memory in child.
Print the value of ptr inside the signal and also print the data.
—————————-
revision 1.3
date: 2015/10/25 07:57:04; author: emblogic; state: Exp; lines: +1 -1
*** empty log message ***
—————————-
revision 1.2
date: 2015/10/25 07:55:59; author: emblogic; state: Exp; lines: +20 -1
here print the value of ptr.
Also supply some value at ptr and print the value of ptr in parent using fork call.
—————————-
revision 1.1
date: 2015/10/25 07:51:13; author: emblogic; state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>