Operating Systems 2014F: Assignment 1: Difference between revisions

From Soma-notes
No edit summary
No edit summary
Line 1: Line 1:
'''This Assignment is not yet finalized.'''
'''This Assignment is not yet finalized.'''


Please submit the answers to the following questions via CULearn by midnight on Wednesday, September 10, 2014.
Please submit the answers to the following questions via CULearn by midnight on Wednesday, September 10, 2014.  There 10 points in 8 questions.


# What is the difference between the <tt>fork</tt> and <tt>exec</tt> function in a UNIX environment? ( 1 point )
# Permissions on UNIX are grouped into three basic file operations. What are these file operations? ( 1 point )
# What is a zombie process? ( 1 point )
# Give an example C program which creates a zombie process.  Note that the shell by default will collect and destroy zombie processes and so you will need to avoid the shell destroying the zombie process during debugging.  This can be done by delaying the parent exit (using sleep is one good way to do this). ( 2 points )
# Perform the modifications to your program above to avoid creating a zombie process.  List the new program. ( 3 points )
# Permissions on Unix are grouped into three basic file operations. What are these file operations? ( 1 point )
# What does it mean to have execute permission on a directory? ( 1 point )
# What does it mean to have execute permission on a directory? ( 1 point )
# What are the 6 basic file permissions within Windows? ( 1 point )
# What are the 6 basic file permissions within Windows? ( 1 point )
# What is the difference between the write and modify file permission in Windows? ( 1 point )
# What is the difference between the write and modify file permission in Windows? ( 1 point )
# Because all files are stored in a directory, under UNIX permission to delete, rename, and move files is determined by the users access rights on the directory the file is contained in.  What attribute on the directory prevents those who can modify a directory from deleting files (hint: help on the <tt>chmod</tt> command may prove useful). ( 1 point )
# Because all files are stored in a directory, under UNIX permission to delete, rename, and move files is determined by the users access rights on the directory the file is contained in.  Temporary directories such as /tmp have a special "t" permissionWhat is this permission for? ( 1 point )
# In Windows, a file can be associated with more than one group and each group can have different access permissionsOn Unix, each file can only belong to one group and groups cannot contain other groups (groups can only contain users).  Having said that, new groups can be created by the system administrator which are supersets of other groups (e.g., to create group C with members of A and B, just add all of A's and B's members to C).  Given this, is it possible to develop an access permission scenario which would be impossible to implement in Unix but possible to implement in Windows? If yes, give an example.  If no, explain why. ( 1 point )
# What does the PATH environment variable do?  PWD? ( 1 point )
# What does the PATH environment variable do?  PWD? ( 1 point )
# What environment variable tells X applications where to find the X server which it should communicate with to display the output? ( 1 point )
# What environment variable tells X applications where to find the X server which it should communicate with to display the output? ( 1 point )
# Dynamic libraries allow one copy of executable code to be used by many different processes on the system, without requiring that multiple copies of the code be stored on disk in different files. What are some problems that can arise when different programs use the same common DLLs (hint: ``DLL Hell'')? ( 1 point )
# To what degree does a modern web browser, such as Firefox or Chrome, look and act like a web browser?  What about a scriptable application such as Microsoft Word? ( 3 )
 
Don't forget to include what outside resources you used to complete your answers, including other students, man pages, and web resources.  You do not need to list help from the instructor, TA, or information found in the textbook.

Revision as of 16:20, 5 September 2014

This Assignment is not yet finalized.

Please submit the answers to the following questions via CULearn by midnight on Wednesday, September 10, 2014. There 10 points in 8 questions.

  1. Permissions on UNIX are grouped into three basic file operations. What are these file operations? ( 1 point )
  2. What does it mean to have execute permission on a directory? ( 1 point )
  3. What are the 6 basic file permissions within Windows? ( 1 point )
  4. What is the difference between the write and modify file permission in Windows? ( 1 point )
  5. Because all files are stored in a directory, under UNIX permission to delete, rename, and move files is determined by the users access rights on the directory the file is contained in. Temporary directories such as /tmp have a special "t" permission. What is this permission for? ( 1 point )
  6. What does the PATH environment variable do? PWD? ( 1 point )
  7. What environment variable tells X applications where to find the X server which it should communicate with to display the output? ( 1 point )
  8. To what degree does a modern web browser, such as Firefox or Chrome, look and act like a web browser? What about a scriptable application such as Microsoft Word? ( 3 )

Don't forget to include what outside resources you used to complete your answers, including other students, man pages, and web resources. You do not need to list help from the instructor, TA, or information found in the textbook.