Aug-06-2018, 11:36 AM
(This post was last modified: Aug-06-2018, 11:37 AM by sansupercool.)
I have been given a homework to find out time it will take to fill the storage.
Let's assume that n number of processes are running on the computer. They run forever, never die, and no new processes get spawned. Each process takes memory at a constant,
individual rate - process p_i (with 0 <= i < n) consumes 1 byte after
every d(p_i) seconds. The total amount of available disk space is denoted by X.
calculate the time to fill up available storage in seconds ?
I am little confused by p_i (with 0 <= i < n)
if processes run forever and never die an no new process get spawned then if rate is constant
it should be 1 byte / second. but why in question is d(p_i) seconds!
if 1 byte/ second is constant rate then is it correct to say time taken
Let's assume that n number of processes are running on the computer. They run forever, never die, and no new processes get spawned. Each process takes memory at a constant,
individual rate - process p_i (with 0 <= i < n) consumes 1 byte after
every d(p_i) seconds. The total amount of available disk space is denoted by X.
calculate the time to fill up available storage in seconds ?
I am little confused by p_i (with 0 <= i < n)
if processes run forever and never die an no new process get spawned then if rate is constant
it should be 1 byte / second. but why in question is d(p_i) seconds!
if 1 byte/ second is constant rate then is it correct to say time taken
time_taken = available_storage/(write_speed * number_of_processes)