In: Computer Science
4. Space-multiplexed sharing is the division of a resource into two or more distinct units and then the allocation of the individual units to processes. Time-multiplexed sharing is when one process can use the entire resource for a period of time and then another process uses it at a later time. Identify the following as either space-multiplexed sharing or time-multiplexed sharing. Can the usage of some resources be both space-multiplexed sharing and time-multiplexed sharing depending on the resource is used?
a. The land in a residential subdivision
b. A personal computer
c. A whiteboard in a classroom
d. A bench seat on a bus
e. A single-user file in UNIX
f. A printer on a timesharing system
g. The heap in the C/C++ runtime system
Answer)
Space-multiplexed sharing
a
The land in a residential subdivision is Space-multiplexed sharing because the full land is divided into smaller units and then sold to the purchaser of the land.
g
The heap in C/C++ is also a space sharing because heap is tree structure, so the heap is shared by then nodes of the heap.
Time-multiplexed sharing
b
A personal computer is a time sharing resource because when somebody is using it, then no other can use it. After the first person leave it then it can be used by the other.
c
A whiteboard in a class is also time sharing, because two person cannot write on the same whiteboard. After one finishes it then another person can write in it.
d
A bench seat on a bus is also timesharing, because at a particular time one person can use it.
f
Both Space-multiplexed sharing and Time-multiplexed sharing
e
A single user file in unix is both Space-multiplexed sharing and Time-multiplexed sharing because it is time sharing when one person is writing in it and it space sharing because when another person is using it the same file is get increased in space.