$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!
Students Who Viewed This Also Studied
CSCI 340 Operating Systems Principles
Task
In a separate file (use a text editor) cut and paste the commands that you typed (including the prompt) and the complete output of these commands. (show output screenshots also)
Note: The output of the commands should not contain more than six lines.
Please get these 3 files in this assignment which is down below:
- doc/txt file that cover parts A to E
- fullname_zombie.c
- snapshot of top command that shows the zombie process
A. Standard Directories and Files
Directory: contains the names of files and/or sub-directories. Standard directories contain some special files.
Root Directory (/)
The root directory is the top of the file system. It is the master cabinet that contains all folders and files.
- Get a listing of your root directory. ( use, cd and ls –l)
/bin
The binary directory: contains executable files and most Unix commands.
- Go to /bin directory. (use cd /bin)
- List its contents.
- List 6 commands that you recognize.
/dev
Device directory.
- Get a listing of the device directory. Do you recognize any device?
/etc
Contains commands and files for system administration. Usually a user is not allowed to change these files.
- Go to /etc directory.
- Do a long listing; Mention a few files that you have already heard about.
- What is the most used permission? What does it mean? (read about permissions in Unix Handout)
- Using cat, check the passwd file or similar; look for yourself in the file.
/lib
Contains a collection of related files for a given language in a single file called an archive.
/tmp
Contains temporary files.
/etc/passwd
Contains one line for every user on the system and describes that user.
B. Determine the absolute pathname for your home directory
10. Type:
echo $HOME
11. Type:
Pwd
C. Shell(s) and Shell Environment variables
- Check your default shell using: echo $SHELL
- Use the chsh command and find a list of available shells.
- Change the current shell to a tcsh .
- Check your new shell. The change will not be listed until the next login.
- Use the ps (process status – gives a lists of running processes). What do you observe?
Shell Environment variables
Bourne, Korn shell C shell
CDPATH cdpath alias names for directories accessed with cd
ENV path along which Unix looks to find config. files
PS1 prompt shell prompt that appears in the command line
PWD cwd name of current directory
HOME home the name of the user’s home directory when the user logs
TERM type of console terminal being used
D. Processes
Check the Unix Handout and go over the section about Processes -section 17.
The action of each shell, the mechanism of how it executes commands and programs, how it handles the command and program I/O and how it is programmed, are affected by the settings of certain environment variables.
- Learn about the ps command using man (type man ps)
- Give a list of possible states together with their significance. Identify your login shell.
- Type ps –l and explain the significance of: F, S, UID, PID, PPID, C, PRI, NI, ADDR, SZ, WCHAN, TTY, TIME, CMD fields.
- Use the top command to monitor the CPU activity in real time. It displays the status of the first 15 of the most CPU-intensive task on the system as well as the CPU activity. To stop the execution of top enter
. - Give the total number of tasks, number of running processes, sleeping processes, stopped processes and zombies.
- Identify the shell process. Use the “regular” kill command to terminate the shell.
- Use the “sure kill” command to terminate the shell. Explain.
Part E
- Use Internet sources and give an overview of the command that is used in Windows for creating a process.
- In a Unix environment, execute parent.c, child.c and orphan.c as follows:
Note: upload first the 3 files in your venus home directory.
child and parent:
– compile the child and parent:
gcc parent.c –o parent
gcc child.c –o child
– run the parent in the current directory (the parent after the fork will call the child)
Don’t worry about warning messages.
./parent
orphan:
– compile and run the orphan:
gcc orphan.c –o orphan
./orphan
Observe and understand the programs’ execution output.
Extensively comment the output of the programs by relating the theory discussed in class, the meaning of the covered commands and the program listings.
- Write a very simple program that will show the possibility of having zombie processes.
Write a program named zombie.c
The main process will create a child.
The child prints something like: “I am the child with pid ….. and my parent has ppid ….”
Next, the child will sleep for 1 second.
Child exits.
The parent will print: I am the parent and my id is… Next, the parent sleeps for 30 seconds. Since the child ends first, and the parent didn’t do wait( ), the child will be for a while in the zombie state. Run the parent in the background, so you can use the top command and identify the zombie, before the parent terminates.
Note: even if the parent terminates, the child is still a zombie. However the the init process reaps the zombies frequently.
CSCI 340 Operating Systems Principles
Answer in Detail
Solved by qualified expert
Get Access to This Answer
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
42 More Pages to Come in This Document. Get access to the complete answer.
MyAssignmenthelp.com is the one-stop solution for every Australian student who has searched the internet with the phrase ‘write my essay cheap.’ We offer custom essay help at unbeatable prices. We also only hire the best essay writers in australia so that students get exactly the kind of essay they want. We have been labeled as the best essay writing service in the country by thousands of students.
More CSCI 340 CSCI 340 Operating Systems Principles: Questions & Answers
Software Test
Software Test Document Introduction: For any software development, testing activities need to be fully documented. The IEEE 829 Standard prescribes a set of documents that cover the various stages of testing, including: Master Test Plan (MTP) provides an overall test planning and test management doc …
View Answer
ISYS3001 Managing Software Development
Task:
Objectives
On completion of this topic you should be able to:
1. Describe the purpose of source code documentation generation tools.
2. Describe the operation of documentation generation tools: Javadoc and XML generated by the C# compiler.
3. Describe the format of …
View Answer
Real Business Organisation
This coursework is to be completed individually. It comprises two parts: • A written report – word length approximately 3500 words +/- 10% You should attend to the following instructions:Choose a real organisation you have either worked for / currently work for, or one where y …
View Answer
Management
The fruit seller wants you to improve your program. Your program should first ask a fruit seller to enter the month (note: year is fixed as 2017), the day of the month, name of the fruit, price per kilo grams, the grade and the number of kilograms sold. The fruit seller gives discounts for lowe …
View Answer
Content Removal Request
If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.
Choose Our Best Expert to Help You
Jane Sima
Ph.D in Psychology with Specialization in Industrial-Organizational Psychology
1592 – Completed Orders
Hire Me
Still in Two Minds? The Proof is in Numbers!
33845 Genuine Reviews With a Rating of 4.9/5.
Finance
Home Work: 4 Pages, Deadline:
7 days
The excel formulas were perfect. But the explanation regarding the recommendation was subpar.
User ID: 5***90 United States
Physics
Home Work: 1 Page, Deadline:
2 days
Wonderful as always! Very professional and knowledgeable! I love this experts work and always use them when it comes to Physics.
User ID: 6***06 Atlanta, United States
Healthcare
Assignment: 8 Pages, Deadline:
4 days
Really appreciate this work which help me to get 8.9 out of 10. i would like to express thanks to expert.
User ID: 5***91 Atlanta, Malaysia
Healthcare
Assignment: 12 Pages, Deadline:
7 days
Good work . it was help me lots. i got 6.5 out of 10 which is good score for me.
User ID: 5***91 Atlanta, Malaysia
Assignment
Essay: 5 Pages, Deadline:
3 days
amazing results, received a High grade thank you very much, appreciate the help. Can’t wait to have more assignments so you guys can help me.
User ID: 5***22 Atlanta, Switzerland
Assignment
Essay: 1 Page, Deadline:
3 days
Hello, Thanks for the quick delivery. And the job well done. looking forward to do more.
User ID: 5***06 Atlanta, Canada
Management
Essay: 4 Pages, Deadline:
4 days
Thanks for quick delivery. I will go through it and see what you have done. Yet to be graded
User ID: 5***06 Atlanta, Canada
Statistics
Course Work: 7 Pages, Deadline:
1 day
Great work- Job well done!! Work was completed before schedule.I Would highly recommend this service to others.
User ID: 8***59 Atlanta, United States
It Write Up
Assignment: 10 Pages, Deadline:
11 days
thank you a lot for helping me with the assignment and doing this so on time . you did exactly what i wanted you to do. i am very satisfied .
User ID: 8***43 Atlanta, Netherlands
Programing
Programming: 1 Page, Deadline:
10 days
thanks i had a good grade although it took so many back and forth i hope it wont happen again
User ID: 6***09 Atlanta, Philippines
Healthcare
Assignment: 1 Page, Deadline:
9 hours
Thanks for helping me understand my assignment and also helping me with the write up.
User ID: 8***87 Atlanta, United States
Accounting
Programming: 6.4 Pages, Deadline:
6 days
Excellent Service, Professional and Complete Writing. Will sure contact for further future assignments.
User ID: 8***38 Atlanta, Australia
Finance
Home Work: 2 Pages, Deadline:
3 days
Thankfully, I received one of the best marks awarded for the kind of work given. I am grateful to my assignment help team for their assistance
User ID: 2***85 Atlanta, Ghana
Business Law
Home Work: 1 Page, Deadline:
1 hour
Thank you for your service. Really appreciate that you make my assignment within time
User ID: 7***52 Atlanta, Canada
Management
Assignment: 2 Pages, Deadline:
7 days
Thank you Expert, my professor regraded my work and gave me a good grade this time. but he also mention that going forward i should be more detailed i …
User ID: 2***97 Upper Marlboro, United States
Medical
Programming: 4 Pages, Deadline:
4 days
Really thanks to your efforts. excellent work. It’s well written and well organized and well explained as following instructions. Thanks a lot.
User ID: 6***55 Upper Marlboro, Canada
Marketing
Assignment: 3 Pages, Deadline:
4 days
Well I must say I was delighted by the timelines and great work. The assignment was top notch with excellent results. I got a A+!!!!!
User ID: 8***30 Upper Marlboro, United States
Economics
Home Work: 1 Page, Deadline:
2 days
Great performance by expert which got reflected on the result 9/10. Iam totally satisfied by the performance and result.
User ID: 8***42 Upper Marlboro, Bahrain
Management
Assignment: 6 Pages, Deadline:
1 day
The writer did an amazing job I am pleased with it gave the work to me in time I am happy with it will do more works with them
User ID: 3***40 Chennai, Great Britain
Economics
Programming: 10 Pages, Deadline:
16 days
A legend, a legend, dear expert. The work is excellent and distinct. It contains all the important and accurate details. I thank you for the professio …
User ID: 9***3 Chennai, Kuwait
Finance
Home Work: 4 Pages, Deadline:
7 days
The excel formulas were perfect. But the explanation regarding the recommendation was subpar.
User ID: 5***90 United States
Physics
Home Work: 1 Page, Deadline:
2 days
Wonderful as always! Very professional and knowledgeable! I love this experts work and always use them when it comes to Physics.
User ID: 6***06 Atlanta, United States
Healthcare
Assignment: 8 Pages, Deadline:
4 days
Really appreciate this work which help me to get 8.9 out of 10. i would like to express thanks to expert.
User ID: 5***91 Atlanta, Malaysia
Healthcare
Assignment: 12 Pages, Deadline:
7 days
Good work . it was help me lots. i got 6.5 out of 10 which is good score for me.
User ID: 5***91 Atlanta, Malaysia
Assignment
Essay: 5 Pages, Deadline:
3 days
amazing results, received a High grade thank you very much, appreciate the help. Can’t wait to have more assignments so you guys can help me.
User ID: 5***22 Atlanta, Switzerland
Assignment
Essay: 1 Page, Deadline:
3 days
Hello, Thanks for the quick delivery. And the job well done. looking forward to do more.
User ID: 5***06 Atlanta, Canada
Management
Essay: 4 Pages, Deadline:
4 days
Thanks for quick delivery. I will go through it and see what you have done. Yet to be graded
User ID: 5***06 Atlanta, Canada
Statistics
Course Work: 7 Pages, Deadline:
1 day
Great work- Job well done!! Work was completed before schedule.I Would highly recommend this service to others.
User ID: 8***59 Atlanta, United States
It Write Up
Assignment: 10 Pages, Deadline:
11 days
thank you a lot for helping me with the assignment and doing this so on time . you did exactly what i wanted you to do. i am very satisfied .
User ID: 8***43 Atlanta, Netherlands
Programing
Programming: 1 Page, Deadline:
10 days
thanks i had a good grade although it took so many back and forth i hope it wont happen again
User ID: 6***09 Atlanta, Philippines
Healthcare
Assignment: 1 Page, Deadline:
9 hours
Thanks for helping me understand my assignment and also helping me with the write up.
User ID: 8***87 Atlanta, United States
Accounting
Programming: 6.4 Pages, Deadline:
6 days
Excellent Service, Professional and Complete Writing. Will sure contact for further future assignments.
User ID: 8***38 Atlanta, Australia
Finance
Home Work: 2 Pages, Deadline:
3 days
Thankfully, I received one of the best marks awarded for the kind of work given. I am grateful to my assignment help team for their assistance
User ID: 2***85 Atlanta, Ghana
Business Law
Home Work: 1 Page, Deadline:
1 hour
Thank you for your service. Really appreciate that you make my assignment within time
User ID: 7***52 Atlanta, Canada
Management
Assignment: 2 Pages, Deadline:
7 days
Thank you Expert, my professor regraded my work and gave me a good grade this time. but he also mention that going forward i should be more detailed i …
User ID: 2***97 Upper Marlboro, United States
Medical
Programming: 4 Pages, Deadline:
4 days
Really thanks to your efforts. excellent work. It’s well written and well organized and well explained as following instructions. Thanks a lot.
User ID: 6***55 Upper Marlboro, Canada
Marketing
Assignment: 3 Pages, Deadline:
4 days
Well I must say I was delighted by the timelines and great work. The assignment was top notch with excellent results. I got a A+!!!!!
User ID: 8***30 Upper Marlboro, United States
Economics
Home Work: 1 Page, Deadline:
2 days
Great performance by expert which got reflected on the result 9/10. Iam totally satisfied by the performance and result.
User ID: 8***42 Upper Marlboro, Bahrain
Management
Assignment: 6 Pages, Deadline:
1 day
The writer did an amazing job I am pleased with it gave the work to me in time I am happy with it will do more works with them
User ID: 3***40 Chennai, Great Britain
Economics
Programming: 10 Pages, Deadline:
16 days
A legend, a legend, dear expert. The work is excellent and distinct. It contains all the important and accurate details. I thank you for the professio …
User ID: 9***3 Chennai, Kuwait
Have any Query?
The post CSCI 340 Operating Systems Principles- Commands and Programs appeared first on study tools.