Question

In: Computer Science

Part A Operating systems generally maintain a computer’s file system. Which of the following items of...

Part A

Operating systems generally maintain a computer’s file system. Which of the following items of information about a file would you expect an operating system to maintain? Note: This question gives a small amout of negative marks for wrong answers.

Select one or more:

a. File password

b. Modification date

c. Ownership

d. Font size

e. Access permissions

f. Last access date

g. File checksum

h. Location (directory)

i. Colour

j. Expiry date

k. File name

l. File size

m. Create date

n. Importance

PART B

Memory management is part of the tasks of a multi-programmed operating system. In multi-programmed operating systems, the OS runs each program in its own (virtual machine) memory area. That is, the program’s stack and program counter as well as working memory are within that memory area allocated by the OS. Each time a program tries to write data to memory, the OS needs to check that the memory location that the program wants to write to is within that program’s memory area. Under Unix operating systems, a segmentation fault indicates that the operating system has caught a process A trying to write to a memory address allocated to a different process B.

What do you think should happen, and why?

Select one:

a. The OS should terminate process A, and keep process B running. Since the memory areas obviously overlap, B will eventually cause its own segmentation fault and will be terminated by the OS then.

b. The OS does not need to terminate either process - the write attempt can simply be left unsuccessful and the segmentation fault can be ignored.

c. The OS should terminate both process A and B. An attempt by process A to write to process B's memory area indicates a problem with the program of process A, but it also indicates that the program of process B has a vulnerability.

d. The OS should terminate process A, and keep process B running. An attempt by process A to write to process B's memory area indicates a problem with the program of process A, not with the program of process B.

e. The OS should terminate both process A and B. An attempt by process A to write to process B's memory area indicates a problem with the program of process A, but process B gets damaged as its memory area gets written to before the segmentation fault.

f. The OS should terminate process B as it got in the way of process A's write attempt. Not terminating B would cause A to deadlock.

PART C

Solutions

Expert Solution

Part A:

(a) File password - Maintained by operating system.

(b) Modification date - Last change date is maintained by operating system.

(c) Ownership - User name is maintained by operating system.

(d) Font size - Font size is maintained by operating system.

(e) Access permissions - Access permissions are maintained by operating system.

(f) Last access date - Last access date is maintained by operating system.

(g) File checksum - File checksum is not maintained by operating system. This is an attribute of the file itself.

(h) Location (directory) - File path is maintained by operating system.

(i) Color - Some system files are colored as blue which indicates high importance. This is maintained by operating system.

(j) Expiry date - There is no such attribute of a file.

(k) File name - It is maintained by operating system.

(l) File size - It is maintained by operating system.

(m) Create date - It is maintained by operating system.

(n) Importance - It is not maintained by operating system.

Part B:

Option (d) is the correct answer.

The OS should terminate process A, and keep process B running. An attempt by process A to write to process B's memory area indicates a problem with the program of process A, not with the program of process B. The segmentation fault occured due to the access authorization issue of process A.

Hope this helps.


Related Solutions

(Operating System CSE) Consider a file system in which a file can be deleted and its...
(Operating System CSE) Consider a file system in which a file can be deleted and its disk space reclaimed while links to that file still exist. What problems may occur if a new file is created in the same storage area or with the same absolute path name? How can these problems be avoided?2)Consider a file systemthat uses a modifiedcontiguous-allocation scheme with support for extents.A file is a collection of extents, with each extent corresponding to a contiguous set of...
3.2 Comparing and contrasting components of an operating system File systems and features Features File management...
3.2 Comparing and contrasting components of an operating system File systems and features Features File management Services Processes Drivers Utilities Interfaces
Which of the following systems functions in part due to differences in relative concentrations of items...
Which of the following systems functions in part due to differences in relative concentrations of items (chemical or energetic units) (select all that apply)? Select one or more: a. Circulatory system gas transfer b. Circulatory system gas transferRespiratory system gas transfer c. Thermoregulatory counter-current heat exchange d. Excretory system nephron filtration e. Neuronal action potentials
1. Which of the following upgrades cannot improve a computer’s speed? (computer’s speed in general, e.g.,...
1. Which of the following upgrades cannot improve a computer’s speed? (computer’s speed in general, e.g., computing speed, wireless speed, and so on). Using Wi-Fi instead of Bluetooth to transmit data. Upgrading to a more powerful CPU. Increasing RAM capacity. Switching from 802.11ac to 802.11a (given that the wireless environment supports both 802.11ac and 802.11a). 2. Which of the following is NOT an example of transactional data? Stock purchase Number of items ordered Total amount for a transaction Sale projection...
Which of the following is not part of, or generally found in, an ovarian follicle? Select...
Which of the following is not part of, or generally found in, an ovarian follicle? Select one: a. cumulus oophorus cells b. An ovum c. An antrum d. Leydig cells e. Thecal cells What effect does estradiol have on cervical mucus? Select one: a. It makes the mucus less abundant and less easily penetrated by sperm b. It make the mucus more abundant and easily penetrated by sperm c. d. It has no effect Where is GnrRH produced? Select one:...
PART A Indicate whether each of the following items should be classified as an operating, investing,...
PART A Indicate whether each of the following items should be classified as an operating, investing, or financing activity on the statement of cash flows. If an item does not belong on the statement, indicate as "NA" (Not applicable). a. Declaration of dividends on common shares, to be paid later b. Payment of dividends on common shares c. Purchase of equipment d. Receipt of cash from the sale of a warehouse e. Receipt of cash through a long-term bank loan...
Which of the following items is NOT part of the shareholders' equity for a bank? A....
Which of the following items is NOT part of the shareholders' equity for a bank? A. Accumulated retained profits B. Shares issued C. Capital notes D. Capital reserve
Which of the following items is NOT part of the shareholders' equity for a bank? A....
Which of the following items is NOT part of the shareholders' equity for a bank? A. Accumulated retained profits B. Capital notes C. Capital reserve D. Shares issued
Which of the following characteristics are part of the parasympathetic nervous system and which are part...
Which of the following characteristics are part of the parasympathetic nervous system and which are part of the sympathetic nervous system? Also indicate if they are found in both systems: Long preganglionic fibers Innervates the smooth muscle of blood vessels Collateral ganglia Terminal ganglia  
Which of the following balance sheet items generally takes the longest time to convert to cash?
Which of the following balance sheet items generally takes the longest time to convert to cash? marketable securities accounts payable inventory accounts receivable
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT