Friday, February 15, 2013

Exercises
Research Topics
A.    Research the size of operating system software by finding the amount of secondary storage space required by different versions of the same operating system or different operating systems. If their sizes are substantially different, explain why that may be the case,such as platform issues, features, etc. Cite your sources.

         Ans.
         Win 3.1 ~15MB, although it requires at least MS-DOS 6.22 to boot, so tack on another few megs.

         Win 95 b ~80MB
         Win 98 SE ~300MB
         Win 2000 Pro ~720MB with no service packs. After SP4, it's around 1GB.
         Win XP Pro, ~1.2GB with SP2.
         Suse 9.2
        Slackware 10.1
        Ubuntu
        Linspire 4.5
        Mandriva 10.1

               http://www.overclockers.com/forums/showthread.php?t=397609


B.     Consult current literature to research file-naming conventions for four different operating systems.Note the acceptable range of characters, maximum length, case sensitivity, etc. Give examples of both acceptable and unacceptable filenames. For extra credit, explain how the File Managers for those operating systems shorten long file names in their internal lists to make them easier to manipulate.Cite your sources.
Ans.
DEC VAX VMS: is not case sensitive and may be up to 32 characters per component;earlier 9 per component; laterally, 255 for a file name and 32 for an extension. A full file specification includes nodename, diskname,directories, filename, extension and version in format.Acceptable: OURNODE::MYDISK:[THISDIR.THATDIRFILENAME.EXTENSION;2 Unacceptable:MYDISK:[THISDIR.THATDIRFILENAME.EXTENSION;2
Mac 
Mac OS X allows you to name your files with up to 255 characters, including spaces and punctuation. The only illegal character for file and folder names in Mac OS X is the colon “:” and in some applications slashes (/) in naming a file. File names cannot start with a dot ".".


Comodore 64: case sensitive/case-preservation, can use any character that uses an 8-bit set, : and = are reserved characters, $ is a reserved word and number of characters depend on the drive used but most drives limit it to 16characters.

Mac OS9 : supports HFS and HFS+File system and may be up to 32 chacacters long. Mac OSX supports HFS and UFS and may be up to 255 characters long. Colon (:) is used as a separator. File names and folders may contain any characters except colon(:) and forward slash(/). File names are not case sensitive. Acceptable: MacHD:Documents:myfile, Unacceptable: MacHD:Documents/usan:myfile

http://newitsc1405.blogspot.com/2011/02/chapter-8-research.html

Exercises:

1. Explain in your words why file deallocation is important and what would happen if it did not occur on a regular basis.

       Ans. the only way a file can be deallocated is by closing.You should be able to set your security product to any attempt to access your files.

2.  Describe how the File Manager allocates a file to a single user. List steps that you think would be followed and explain your reasoning.
     
      Ans.File Manager allocates file to single user by first it provide a command or user interface then activating the secondary storage , then loading the file into memory while updating who is using the file.

3.  Is device independence important to the file manager ? Why or why not ? Describe the consequences if that were not the case.

Ans. Device independence is important to file manager because it needs a user interface to work with file system .To be able to use the local hardware we should have software application

4. Do you think file retrieval is different on a menu-driven system and a command-driven system? Explain your answer and describe any differences between two . Give an example of when each would be preferred over the other.

Ans. the file retrieval and the two user interface are same because it gives order to the computer but their difference is file retrieval is a process to restored files while the two are order the computer to choose from menu that appears on the screen.

5. Imagine one real - life example of each : a multi file volume and a multi-volume file. Include a description of the media used for storage and a general description of the data in the file.

     Ans. In real life an example of multi-file volume is secondary storage devices like disk drive and multi-volume file the set of data which is databases.

6.As described in this chapter, files can be formatted with fixed-lenght fields or variable-lenght fields. In your opinion, would it be feasible to combine both formats in a single disk? Explain the reasons for your answer.

        Ans.File-lenght fields is easier to program but waste disk space and variable-lenght field save space.I think it is  not feasible to combine both formats because they are not the same in formats. 

7. Explain why it's difficult to support direct access to files with variable-length records. Suggest a method for handling this type of file if direct access is required.

   Ans. It is difficult to support direct access to files with variable-lenght records because you have to use a different structure for each variable record type depends on data is stored in field.You have to identify the record type.

   
8.Give example of the names of three files from your computer that do not reside at the root or master directory. For each file, list both the relative filename and its complete filename.

Ans.
 *.exe - 1701_Gold_Trn_P.exe
 *.ttf - Dovah.ttf
 *.pdf - 1701AD_GOLD_Manual.pdf