Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------
- Output of my C++ prog :
- -----------------------------------
- I'am the original process with PID 21184 and PPID 21128.
- I'am the parent with PID 21184 and PPID 21128.
- My child's PID is 21185
- PID 21184 terminates.
- I'm the child with PID 21185 and PPID 21184 before sleeping.
- saurabh@JaiJinendra:~/Desktop/IV Sem/OS/Online Resources/Programs/Assignment1$
- I'm the child with PID 21185 and PPID 29179 after waking up.
- PID 21185 terminates.
- -----------------------------------
- Output of ps -e
- -----------------------------------
- PID TTY TIME CMD
- 1 ? 00:00:02 init
- 2 ? 00:00:00 kthreadd
- 3 ? 00:00:01 ksoftirqd/0
- 5 ? 00:00:00 kworker/0:0H
- 7 ? 00:01:13 rcu_sched
- 8 ? 00:00:15 rcuos/0
- 9 ? 00:00:12 rcuos/1
- 10 ? 00:00:18 rcuos/2
- 11 ? 00:01:03 rcuos/3
- 12 ? 00:00:00 rcuos/4
- 13 ? 00:00:00 rcuos/5
- 14 ? 00:00:00 rcuos/6
- 15 ? 00:00:00 rcuos/7
- 16 ? 00:00:00 rcu_bh
- 17 ? 00:00:00 rcuob/0
- 18 ? 00:00:00 rcuob/1
- 19 ? 00:00:00 rcuob/2
- 20 ? 00:00:00 rcuob/3
- 21 ? 00:00:00 rcuob/4
- 22 ? 00:00:00 rcuob/5
- 23 ? 00:00:00 rcuob/6
- 24 ? 00:00:00 rcuob/7
- 25 ? 00:00:01 migration/0
- 28 ? 00:00:01 migration/1
- 29 ? 00:00:02 ksoftirqd/1
- 31 ? 00:00:00 kworker/1:0H
- 33 ? 00:00:01 migration/2
- 34 ? 00:00:01 ksoftirqd/2
- 36 ? 00:00:00 kworker/2:0H
- 38 ? 00:00:01 migration/3
- 39 ? 00:00:02 ksoftirqd/3
- 41 ? 00:00:00 kworker/3:0H
- 42 ? 00:00:00 khelper
- 43 ? 00:00:00 kdevtmpfs
- 44 ? 00:00:00 netns
- 45 ? 00:00:00 writeback
- 46 ? 00:00:00 kintegrityd
- 47 ? 00:00:00 bioset
- 48 ? 00:00:05 kworker/u17:0
- 49 ? 00:00:00 kblockd
- 50 ? 00:00:00 ata_sff
- 51 ? 00:00:00 khubd
- 52 ? 00:00:00 md
- 53 ? 00:00:00 devfreq_wq
- 58 ? 00:00:00 khungtaskd
- 59 ? 00:00:00 kswapd0
- 60 ? 00:00:00 ksmd
- 61 ? 00:00:11 khugepaged
- 62 ? 00:00:00 fsnotify_mark
- 63 ? 00:00:00 ecryptfs-kthrea
- 64 ? 00:00:00 crypto
- 76 ? 00:00:00 kthrotld
- 99 ? 00:00:00 deferwq
- 100 ? 00:00:00 charger_manager
- 151 ? 00:00:00 kpsmoused
- 153 ? 00:00:00 scsi_eh_0
- 154 ? 00:00:00 scsi_eh_1
- 155 ? 00:00:00 scsi_eh_2
- 172 ? 00:00:14 jbd2/sda7-8
- 173 ? 00:00:00 ext4-rsv-conver
- 312 ? 00:00:00 upstart-udev-br
- 317 ? 00:00:00 systemd-udevd
- 361 ? 00:00:00 irq/62-mei_me
- 404 ? 00:00:00 cfg80211
- 423 ? 00:00:00 kvm-irqfd-clean
- 483 ? 00:00:00 upstart-socket-
- 575 ? 00:00:00 scsi_eh_3
- 576 ? 00:00:11 rts5139-control
- 577 ? 00:06:37 rts5139-polling
- 579 ? 00:00:00 ttm_swap
- 721 ? 00:00:00 upstart-file-br
- 723 ? 00:00:38 dbus-daemon
- 725 ? 00:00:00 rsyslogd
- 741 ? 00:00:00 ModemManager
- 821 ? 00:00:19 avahi-daemon
- 826 ? 00:00:00 avahi-daemon
- 827 ? 00:00:00 bluetoothd
- 832 ? 00:00:00 krfcommd
- 873 ? 00:00:00 systemd-logind
- 877 ? 00:00:47 NetworkManager
- 883 ? 00:00:02 polkitd
- 905 ? 00:00:00 hd-audio1
- 908 ? 00:00:00 hd-audio0
- 918 ? 00:00:44 wpa_supplicant
- 920 ? 00:00:00 hci0
- 921 ? 00:00:00 hci0
- 1039 ? 00:00:04 dnsmasq
- 1126 tty4 00:00:00 getty
- 1130 tty5 00:00:00 getty
- 1136 tty2 00:00:00 getty
- 1137 tty3 00:00:00 getty
- 1140 tty6 00:00:00 getty
- 1202 ? 00:00:00 cups-browsed
- 1204 ? 00:00:23 irqbalance
- 1210 ? 00:00:05 acpid
- 1226 ? 00:00:06 kerneloops
- 1228 ? 00:00:00 cron
- 1389 ? 00:00:04 whoopsie
- 1403 ? 00:00:10 apache2
- 1407 ? 00:00:00 apache2
- 1408 ? 00:00:00 apache2
- 1409 ? 00:00:00 apache2
- 1410 ? 00:00:00 apache2
- 1411 ? 00:00:00 apache2
- 1626 tty1 00:00:00 getty
- 1656 ? 00:00:00 lightdm
- 1670 ? 00:00:04 accounts-daemon
- 1713 ? 00:00:00 kauditd
- 1817 ? 00:00:10 upowerd
- 1834 ? 00:00:03 rtkit-daemon
- 2046 ? 00:00:00 colord
- 2528 ? 00:00:31 udisksd
- 2717 ? 00:00:02 mount.ntfs
- 9005 ? 00:00:00 xfsalloc
- 9007 ? 00:00:00 xfs_mru_cache
- 9008 ? 00:00:00 xfslogd
- 9011 ? 00:00:00 jfsIO
- 9012 ? 00:00:00 jfsCommit
- 9013 ? 00:00:00 jfsCommit
- 9014 ? 00:00:00 jfsCommit
- 9015 ? 00:00:00 jfsCommit
- 9016 ? 00:00:00 jfsSync
- 9035 ? 00:00:00 bioset
- 14862 ? 00:00:00 apache2
- 16202 ? 00:00:00 cupsd
- 16206 ? 00:00:00 dbus
- 18350 ? 00:00:01 kworker/u17:2
- 18840 ? 00:00:16 kworker/2:2
- 18881 ? 00:00:18 kworker/0:0
- 20229 ? 00:00:00 kworker/u16:2
- 20348 ? 00:00:08 gnome-terminal
- 20355 ? 00:00:00 gnome-pty-helpe
- 20356 pts/1 00:00:00 bash
- 20427 ? 00:00:00 kworker/3:2
- 20462 ? 00:00:00 kworker/u16:1
- 20551 ? 00:00:00 kworker/u16:0
- 20555 pts/1 00:00:00 ps
- 21474 ? 00:00:19 kworker/1:2
- 26961 ? 00:00:00 dhclient
- 28905 ? 00:00:00 kworker/2:1
- 28908 ? 00:00:00 kworker/3:1
- 28915 tty7 00:01:00 Xorg
- 28920 ? 00:00:00 kworker/1:1
- 28993 ? 00:00:00 lightdm
- 29177 ? 00:00:07 gnome-keyring-d
- 29179 ? 00:00:00 init
- 29242 ? 00:00:01 dbus-daemon
- 29254 ? 00:00:00 upstart-event-b
- 29260 ? 00:00:00 window-stack-br
- 29268 ? 00:00:01 bamfdaemon
- 29269 ? 00:00:04 ibus-daemon
- 29282 ? 00:00:00 at-spi-bus-laun
- 29286 ? 00:00:00 dbus-daemon
- 29289 ? 00:00:00 at-spi2-registr
- 29302 ? 00:00:00 gvfsd
- 29306 ? 00:00:00 upstart-dbus-br
- 29312 ? 00:00:00 upstart-dbus-br
- 29317 ? 00:00:00 upstart-file-br
- 29321 ? 00:00:00 ibus-dconf
- 29322 ? 00:00:01 ibus-ui-gtk3
- 29324 ? 00:00:00 ibus-x11
- 29339 ? 00:00:01 ibus-engine-sim
- 29366 ? 00:00:00 unity-settings-
- 29370 ? 00:00:04 hud-service
- 29376 ? 00:00:00 gnome-session
- 29381 ? 00:00:02 unity-panel-ser
- 29442 ? 00:00:00 indicator-keybo
- 29444 ? 00:00:00 indicator-messa
- 29445 ? 00:00:00 indicator-bluet
- 29450 ? 00:00:00 indicator-power
- 29452 ? 00:00:00 indicator-datet
- 29456 ? 00:00:00 indicator-sound
- 29462 ? 00:00:00 indicator-print
- 29471 ? 00:00:00 pulseaudio
- 29473 ? 00:00:00 evolution-sourc
- 29480 ? 00:00:00 indicator-sessi
- 29484 ? 00:00:00 indicator-appli
- 29523 ? 00:00:00 dconf-service
- 29536 ? 00:00:00 notify-osd
- 29631 ? 00:00:00 gvfsd-metadata
- 29636 ? 00:00:41 compiz
- 29640 ? 00:00:00 evolution-calen
- 29643 ? 00:00:00 nautilus
- 29650 ? 00:00:00 nm-applet
- 29652 ? 00:00:01 alarm-clock-app
- 29656 ? 00:00:00 unity-fallback-
- 29660 ? 00:00:00 polkit-gnome-au
- 29666 ? 00:00:00 gconfd-2
- 29670 ? 00:00:00 gvfs-udisks2-vo
- 29687 ? 00:00:00 gvfs-gphoto2-vo
- 29691 ? 00:00:00 gvfs-afc-volume
- 29696 ? 00:00:00 gvfs-mtp-volume
- 29702 ? 00:00:00 gvfsd-trash
- 29712 ? 00:00:00 gvfsd-burn
- 29782 ? 00:00:00 unity-scope-hom
- 29793 ? 00:00:00 unity-scope-loa
- 29808 ? 00:00:00 zeitgeist-daemo
- 29818 ? 00:00:00 unity-music-dae
- 29822 ? 00:00:00 unity-files-dae
- 29825 ? 00:00:00 zeitgeist-datah
- 29827 ? 00:00:01 zeitgeist-fts
- 29839 ? 00:00:00 cat
- 29864 ? 00:00:00 telepathy-indic
- 29870 ? 00:00:00 mission-control
- 29899 ? 00:00:00 gvfsd-http
- 29944 ? 00:00:37 chrome
- 29951 ? 00:00:00 cat
- 29952 ? 00:00:00 cat
- 29954 ? 00:00:00 chrome-sandbox
- 29955 ? 00:00:00 chrome
- 29962 ? 00:00:00 chrome-sandbox
- 29963 ? 00:00:00 nacl_helper
- 29965 ? 00:00:00 chrome
- 29985 ? 00:00:03 chrome
- 29995 ? 00:00:00 chrome
- 30003 ? 00:00:08 chrome
- 30024 ? 00:00:00 chrome
- 30033 ? 00:00:02 chrome
- 30043 ? 00:00:00 chrome
- 30047 ? 00:00:00 chrome
- 30055 ? 00:00:02 chrome
- 30060 ? 00:00:01 chrome
- 30070 ? 00:00:00 chrome
- 30081 ? 00:00:06 chrome
- 30086 ? 00:00:02 chrome
- 30095 ? 00:00:01 chrome
- 30099 ? 00:00:16 chrome
- 30105 ? 00:00:00 chrome
- 30113 ? 00:00:17 chrome
- 30125 ? 00:00:02 chrome
- 30223 ? 00:00:02 chrome
- 30228 ? 00:00:02 chrome
- 30239 ? 00:00:01 chrome
- 30264 ? 00:00:01 chrome
- 30278 ? 00:00:04 chrome
- 30304 ? 00:00:01 chrome
- 30388 ? 00:00:45 sublime_text
- 30408 ? 00:00:03 plugin_host
- 30456 ? 00:00:00 update-notifier
- 30562 ? 00:00:00 deja-dup-monito
- 30680 ? 00:00:00 kworker/0:2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement