Search completed in 1.12 seconds.
Anonymous Shared Memory
udo-code below shows the use of a file-mapped shared memory by a parent and child processes. In the examples, the server creates the file-mapped shared memory, the client attaches to it. First protocol Server: fm = PR_OpenAnonFileMap(dirName, size, FilemapProt); addr = PR_MemMap(fm); attr = PR_NewProcessAttr(); PR_ProcessAttrSetInheritableFileMap( attr, fm, shmname ); PR_CreateProcess(Client);
PR_DestroyProcessAttr(attr); ... yadda ... PR_MemUnmap( addr ); PR_CloseFileMap(fm); Client: ... started by server via PR_CreateProcess() fm = PR_GetInheritedFileMap( shmname ); addr = PR_MemMap(fm); ... yadda ... PR_MemUnmap(addr); PR_CloseFileMap(fm); Second protocol Server: fm = PR_OpenAnonFileMap(dirName, size, FilemapProt); fmstring = PR_ExportFileMapAsString( fm ); addr = PR_MemMap(fm); ... application sp...
Process Management and Interprocess Communication
efined for process management are: PRProcess PRProcessAttr Process Management Functions The process manipulation function fall into these categories: Setting the Attributes of a New Process Creating and Managing Processes Setting the Attributes of a New Process The functions that create and manipulate attribute sets of new processes are: PR_NewProcessAttr PR_ResetProcessAttr
PR_DestroyProcessAttr PR_ProcessAttrSetStdioRedirect PR_ProcessAttrSetCurrentDirectory PR_ProcessAttrSetInheritableFD Creating and Managing Processes The functions that create and manage processes are: PR_CreateProcess PR_DetachProcess PR_WaitProcess PR_KillProcess ...