Unit OS4: Scheduling and Dispatch - Assignments 2
© 2005 David A. Solomon and Mark Russinovich
Assignment 8.2.1:
Explain to your instructor the compression algorithm used for NTFS files. What happens if you allocate a sparse file – create a new file, set the file pointer to a large value, set the file size – on a compressed versus an uncompressed NTFS volume?
Explain your answer.
Assignment 8.2.2:
Design and implement a version of the UNIX ls-command (ls-R.exe) using the Windows API. The ls-R-command should interpret its argument as a path name to a directory and recursively list the directory and its subdirectories.
Usage of ls-R.exe:
$ ls-R.exe C:\Windows\system32
Use the Windows-functions FindFirstFile() and FindNext() to obtain information about the directory content.
Assignment 8.2.3:
Design and implement two programs ac2uc.exe and uc2ac.exe that convert an ascii file to Unicode and vice versa. The programs should use CreateFile(), ReadFile(), WriteFile(), and CloseHandle() to manipulate file content.
CreateFile() allows you to specify file access characteristics to enhance performance of the file system operations. Modify your programs the flag FILE_FLAG_SEQUENTIAL_SCAN. Experiment with I/O buffers of varying size. Investigate the performance impact for large files residing on an NTFS volume.
Assignment 8.2.4:
Design and implement a version of the UNIX mv-command (mymv.exe) using the Windows API. The mymv-command should be able to move complete directories.
Your implementation should copy the file(s) if the target is on a different drive from that of the source file or directory; otherwise it should use the Windows-functions MoveFile() or MoveFileEx().
Usage of mymv.exe:
$ mymv.exe C:\tmp d:\tmp
$ mymv.exe DirA DirB
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- and resetting the class path
- after starting wincvs the first time set your preferences
- user guide template
- procedure for installation
- knowledge base abila
- to run cadence you just need to have usr local apps bin
- creating a smart document
- unit os4 scheduling and dispatch assignments 2
- installation back out and rollback guide template
Related searches
- surgical scheduling policy and procedure
- army dispatch form 1970 printable
- planning and scheduling best practices
- unit 2 logic and proof
- dispatch qa qc inspection sheet
- baltimore county fire dispatch live
- baltimore city 911 dispatch center
- chemistry concepts and applications 8 2 study guide
- columbus dispatch high school sports
- test unit 2 test form a microeconomics prices and markets
- customs declaration and dispatch note
- anatomy and physiology chapter 2 test