Cs-Web

View on GitHub
  1. Communications

create, delete communication connection

types:

Two common models for interprocess comm

Message passing model

msgPassingMode

entire process is done by the OS

Shared memory

create is used to create attach is used to attach to the shared-memory

after creating and given access the OS has no power, rest is done by process

Windows Linux
CreatePipe() pipe()
CreateFileMapping() shm_open()
MapViewOfFile() mmap()

pipe() -interprocess- pass memory/data

shm_open() [shared memory]- mapping a content of file to mem addr

mmap() - map to shared mem area

  1. Protection
Windows Linux
SetFileSecurity() chmod()
InitializeSecurityDescriptor() umask()
SetSecurityDescriptorGroup() chown()

chown() - change group permission