UNIX Network Programming Volume II Interprocess Communications - W. Richard Stevens (ebook).pdf
(
19507 KB
)
Pobierz
S E C O N D
E D I T I O N
W.
RICHARD
STEVENS
Interprocess
Communications
Well-implemented interprocess communications (IPC) are key to the performance of
virtually every non-trivial UNIX program. In
UNIX Network
Programming,
Udnme
2,
Seeond
Edition,
legendary UNIX expert W Richard Stevens presents
.
a comprehensive guide to every form of
IPC.
including message passing. synchronization.
shared memory, and Remote Procedure Calls
(RPG.
I
you'll
ever
nee&
-
Stevens
heglns
with
a
basic:
introduction
to
IPC
and
the
problems
it
is
intended
to
solve
b
Slep-by-step
you'll
learn
how
to
maximize
both
System
V
IPC
and
the
new
Posix
standards.
which
offer
dramatic
improvements
in
convenience
and
performance.
You'll
find
extensive
coverage
of
Pthreads.
with
many
examples
rrflecting
multiple
threads
instead
of
multiple
processes.
Alongthe
way.
you'll
master
every
current
IPC
technique
and
technology.
including:
Pipes and
FlFOs
Posix
and
System
V
Message
Queues
POSIX
System
V
Semaphores
and
Poslx
and System
V
Shared Me
t
-C
Sbiaris
Doors and Sun
RPC
performance
Measurements
of
IPC
Techn~ques
of
UNlX Network
Programming,
of
five!
You
won't
just
learn about IPC
"from
the
outside."
You'll
actually
create
implemkntatiom
of Posix
message
queues.
read-write
locks,
and
semaphores,
gaining
an
in-de@h
understanding
of
these
capabilities
you
simply
can't
get
awwhere
else.
The
book
contains
extensive
new
source code--all
caqfully
optimized
and
available
on
the
Web.
You'll
even
find
a
complete
guide
to
mesuring
IPC
performance
with
message
passing
bandwidth
and
laterfcy progrMns,
and
thread
and
process
synchronization
programs.
The
better
you
understand
IPC.
the better
your
UNIX
software will run. This book
contains
all
you
need
to
know.
I
1
ABOUT
THE
AUTHOR
W.
RlCHAR
D
S T E V E N S
is
author
of
UNIX
Network Programming.
Firs
widely
recognized
as
the
classic
text
in
UNIX
networking
and
UNIX
Net
Programming,
Wume
1.
Second
Edition.
He
is
also
author of
Advanced
in
the
UNIX
Environment
and
the
TCP/IP IIIustrated
Series.
Stevens
is
an
acknowledged
UNIX
and
networking
expert.
sought-after
instructor,
and
occamnal
consultant.
PRENTICE
HALL
Upper
Saddle
River.
NJ
07458
Fnto pooye
ucin rttp
boolLt
CLIENT
void
clnt-control(CLIENT
*d,
unsigned int
request,
char
* p t r )
;
*clnt-create (const char
*host,
unsigned long
prognum,
unsigned long
versnum,
const char
*protocol)
;
clnt-destroy(CL1ENT
* c ! ) ;
Page
418
420
390
361
363
365
365
365
390
384
390
int door-bind
(
int
f d )
;
int door-call
(
int
f d ,
door-arg-t
*argp)
;
int door-create
(Door-serverqroc
*proc,
void
*cookie,
u-int
attr)
;
int door-cred (door-cred-t
*cred)
;
int door-info
(int
f d ,
door-in£o t
*info)
;
-
int dooryeturn
(char
*dataptr,
size-t
datasize,
door-desc-t
*descptr.
size-t
ndesc)
;
int door-revoke (int
fd)
;
Door-createqroc
*door~server~create(Door~createqroc
*prOc);
int
door-unbind(void);
void err-durn (const char
* f i t ,
. . .
)
;
void err-msg (const char
* f i t ,
. . .
)
;
void err-quit (const char
* f i t ,
. . .
)
;
void err-rot (const char
* f i t ,
. . .
)
;
void err-sys (const char
* f i t ,
. .
.
)
;
/ *
struct flock
*arg
* /
int fstat(int
f d ,
struct stat
*buf
) ;
key-t ftok(const char
*pathname,
int
i d ) ;
int ftruncate(int
f d ,
of f-t
length)
;
int
fcntl(int
f d ,
int
cmd,
...
);
int
int
q c l o s e (mqd-t
mqdes)
;
qgetattr (mqd-t
mqdes,
struct mpattr
*attr)
;
int -notify
(mqd-t
mqdes,
const struct sigevent
*notification)
;
mqd-t qopen(const char
*name,
int
oflag,
. .
.
/ *
mode-t
mode,
struct mq-attr
*attr
* /
) .
int
int
int
-unlink
(const char
*name)
;
77
msgctl(int
msqid,
int
cmd,
struct msqid-ds
msgget(key-t
key,
int
oflag)
;
*buff);
FILE
*popen(const char
*command,
const char
*type)
;
52
Function prototype
int
pthread-cancel (pthread-t
tid)
;
* )
,
void pthread-c leanupgop
(
int
execute)
;
void
pthread-cleanupgush(void
(*function)
(void
int
int
int
void
*a%)
;
Page
187
187
187
502
504
504
503
503
pthreahcreate
(pthread-t
*tid,
const pthread-attr-t
*attr,
void
*
(*fu?tc)
(void
* )
,
void
*a%)
;
pthread-detach (pthread-t
tid)
;
pthread-join(pthread-t
tid,
void
**status)
;
pthread-self(void);
void pthread-exit(void
*status)
;
pthread-t
int
int
int
int
int
int
int
int
pthread-condattr-destroy(pthread-condattr-t
*attr);
pthread-condattr-getpshared(const
pthread-condattr-t
'attr,
int
*valptr)
;
172
173
172
173
171
172
172
167
171
167
pthread-condattr-init(pthread-condattr-t
*attr);
*attr,
int
value);
pthread-condattr-setpshared(pthread-condattr-t
pthread-cond-broadcast(pthread-cond-t
pthreahcond-destroy(pthread-cond-t
*cptr);
pthread-cond-init(pthread-cond-t
pthread-cond-signal(pthread-cond-t
*cptr);
*cptr,
const pthread-condattr-t
*attr);
*cptr);
int
pthread-cond-timedwait(pthread-cond-t
*cptr,
pthread-mutex-t
*mptr,
const struct timespec
*abstime)
;
pthread-cond-wait(pthread~cond-t
*cptr,
pthread-mutex-t
pthread-mutaxattr-destroy(pthread-mutexattr-t
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int
*mptr);
*attr);
pthread-mutaxattr-getpsharrd
(
const pthread-mutexattr-t
*attr,
int
"valptr)
;
pthread-mutaxattr-init(pthread-mutexattr-t
*attr)
;
pthread-mutaxattr-setpshared(pthread-mutexattr-t
*attr,
int
value);
pthread-mutex-destroy(pthread-mutex-t
pthread-mutex-init(pthread-mutex-t
*mptr);
*mptr,
const pthread-mutexattr-t
*attr);
pthread~mutex~lock(pthread~mutex~t
*mptr)
;
pthrea~mutex~trylock(pthread~mutex~t
*mptr);
pthread~mutex~unlock(pthread~mutex~t
t r ) ;
*mp
pthread~rwlockattr~destroy(pthread~rwlockattr~t
*attr);
pthread-rwlockattr-getpshared(const
pthread-rwlockattr-t
*attr,
int
*Va!ptr)
;
pthread-rwlockattr-init(pthread-rwlockattr-t
*attr);
pthread-rwlockattr-setpshared
(pthread-rwlockattr-t
*attr,
int
value)
;
pthread-rwlock_destroy(pthread-rwlock-t
*noptr);
pthread-rwlock-init (pthread-rwlock-t
*noptr,
const pthread-rwlockattr-t
*attr);
pthread~rwlock~rdlock(pthread~rwlock~t
*noptr);
pthread~rwlock~tryrdlock(pthread~rwlock~t
*noptr);
pthread~rwlock~trywr1ock(pthread~rwlock~t
*noptr);
pthrea~rwlock~unlock(pthread~rwlock~t
*nu@');
pthread~rw1ock~wrlock(pthread~rwlo~k~t
) ;
*qtr
UNIX Network Programming
Volume
2
Second Edition
lnterprocess Communications
by
W.
Richard Stevens
ISBN
0-23-082082-9
Prentice
Hall PTR
Upper Saddle River,
NJ
07458
www.phptr.com
Plik z chomika:
Szeregowy2013
Inne pliki z tego folderu:
UNIX Network Programming Volume II Interprocess Communications (2nd Edition) - W. Richard Stevens.pdf
(81424 KB)
UNIX Network Programming Volume II Interprocess Communications - W. Richard Stevens.pdf
(21636 KB)
UNIX Network Programming Volume II Interprocess Communications - W. Richard Stevens (ebook).pdf
(19507 KB)
UNIX Network Programming Volume II Interprocess Communications - W. Richard Stevens (ebook).pdf
(19354 KB)
UNIX Network Programming Volume I Networking APIs Sockets and XTI - W. Richard Stevens.pdf
(14024 KB)
Inne foldery tego chomika:
12 życiowych zasad [Jordan B. Peterson]
20 prostych projektów dla elektroników
802.11 Wireless Networks Security and Analysis
802.11ac A Survival Guide Wi-Fi at Gigabit and Beyond
A Guide to MATLAB For Beginners and Experienced Users
Zgłoś jeśli
naruszono regulamin