NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

1.Program's purpose is how to create of child processes and how do they work.
Also lab work show us, understanding of the distribution of a process memory.
2.Mainprog process created 3 child.
3.

Parent created child ID = 3260
Parent created child ID = 3261
Parent created child ID = 3262
This statement belogs to child.c
so I skip them.
Parent: child ID = 3261 returned status = 0009
Parent: child ID = 3262 returned status = BE00
Parent: child ID = 3260 returned status = BC00

4.

5. sprintf(value, "%d", i); statement is not executed

6. All of these system calls are used to wait for state changes in a child of the calling process, and obtain information about the child whose state has changed.
A state change is considered to be: the child terminated; the child was stopped by a signal; or the child was resumed by a signal.



All of these system calls are used to wait for state changes in a child of the calling process, and obtain information about the child whose state has changed.
A state change is considered to be: the child terminated; the child was stopped by a signal; or the child was resumed by a signal

So wait() allows a process to wait until one of its child processes change its state, exists for example.
If waitpid() is called with a process id it waits for that specific child process to change its state,
if a pid is not specified, then it's equivalent to calling wait() and it waits for any child process to change its state.

7. Child will not terminated even if parent is terminated because when the parent is terminated computer assign random parent for child.

8. It's a shortcut to show virtual addresses.

9. These names refer neither to routines nor to locations with interesting contents.
The address of etext is the first address above the program text, edata above the initialized data region, and end above the uninitialized data region.

10.

11.Malloc is not a systemcall program.Malloc takes from (and free gives back to) an internal heap.

12.argv and argc are how command line arguments are passed to main() in C and C++.
argc will be the number of strings pointed to by argv.
This will (in practice) be 1 plus the number of arguments, as virtually all implementations will prepend the name of the program to the array.

13.getppid() : returns the process ID of the parent of the calling process. If the calling process was created by the fork() function and the parent process still exists at the time of the getppid function call,
this function returns the process ID of the parent process.Otherwise, this function returns a value of 1 which is the process id for init process.
getpid() : returns the process ID of the calling process. This is often used by routines that generate unique temporary filenames.

14.

15.

16.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.