The execution of the read and write code made us know about the operation of the OS. So, In conclusion we can see through the plotting of graph made us to note the optimum level of usage between the memory register and processor. OS makes the usage of hardware so efficient and time saving.
Now looking into the code we can the working of the write and read functions works on the language platform and where OS fetches the data and convert to assembly language and then convert it to binary codes to interact with the machines.
In the graph we can see once the compilers compile the code the results displayed in the order for 1, 2, 4, 8, 16, 32, 64, 128, 256, 512 & 1024 bytes. For the file sizes 1MB to 128MB. Each line describe each file size from 1, 2, 4, 8, 16, 32, 64 &128 MB .
We can observe that OS takes more time to do the job compared to other precedence job the graph line is Inverted “L” shape accordance with time taken where it is nearly “0.0003”.
(0.000131, 2)
(0.000035, 4)
(0.000025, 8)
(0.000022, 16)
(0.000021, 32)
(0.000021, 64)
(0.000020, 128)
(0.000020, 256)
(0.000019, 512)
(0.000021, 1024)
2 bytes is 0.000150
4 bytes is 0.000040
8 bytes is 0.000039
16 bytes is 0.000028
32 bytes is 0.000029
64 bytes is 0.000027
128 bytes is 0.000027
256 bytes is 0.000027
512 bytes is 0.000033
1024 bytes is 0.000027
2 bytes is 0.000133
4 bytes is 0.000042
8 bytes is 0.000044
16 bytes is 0.000104
32 bytes is 0.000028
64 bytes is 0.000027
128 bytes is 0.000026
256 bytes is 0.000027
512 bytes is 0.000027
1024 bytes is 0.000027
2 bytes is 0.000143
4 bytes is 0.000033
8 bytes is 0.000027
16 bytes is 0.000026
32 bytes is 0.000024
64 bytes is 0.000024
128 bytes is 0.000024
256 bytes is 0.000024
512 bytes is 0.000024
1024 bytes is 0.000025
2 bytes is 0.000167
4 bytes is 0.000044
8 bytes is 0.000030
16 bytes is 0.000030
32 bytes is 0.000028
64 bytes is 0.000027
128 bytes is 0.000028
256 bytes is 0.000028
512 bytes is 0.000027
1024 bytes is 0.000029
2 bytes is 0.000144
4 bytes is 0.000039
8 bytes is 0.000032
16 bytes is 0.000030
128 bytes is 0.000028
256 bytes is 0.000027
512 bytes is 0.000029
1024 bytes is 0.000027
2 bytes is 0.000231
4 bytes is 0.000062
8 bytes is 0.000047
16 bytes is 0.000043
32 bytes is 0.000043
64 bytes is 0.000042
128 bytes is 0.000041
256 bytes is 0.000041
512 bytes is 0.000040
1024 bytes is 0.000048
2 bytes is 0.000185
4 bytes is 0.000042
8 bytes is 0.000031
16 bytes is 0.000030
32 bytes is 0.000028
64 bytes is 0.000027
128 bytes is 0.000026
256 bytes is 0.000027
512 bytes is 0.000026
1024 bytes is 0.000027
We get to know the OS way of scheduling the job dynamically according with the job priority.