7 7 votes Consider a disk with 80 GB. The size of disk block is 8 kB. Number of blocks needed to keep track of free space if the disk is initially empty by using bit map method is _____ Operating System test-series operating-system file-system + – mcjoshi 2.7k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 11 11 votes In the bitmap approach " every disk block will map with one binary bit (not matter it is free or not)" total no of disk blocks=disk size/one disk block size = 80GB/8KB =10M now one disk block contains 64 K bits so it contains info (free /busy) about 64K disk blocks. so for 1 M blocks = 10M/64K=160 disk blocks.{--ans} saurabh rai answered Sep 20, 2016 • selected Sep 29, 2016 by mcjoshi saurabh rai comment Share Follow See all 7 Comments 7 7 Comments reply Show 4 previous comments saurabh rai commented Sep 25, 2016 i edited by saurabh rai Sep 25, 2016 reply Follow flag I think u are using 1 K byte =1000 bits so 10 *10^6 / 64* 10^3 = 156.25 But I M using 10*1024*1024/64*1024= 160 --- i think we need to focus on approach rather than ans btw in gate there ll be no such type of ambiguity they should mention it explicitly if..... 3 3 replyShare Dulqar commented Jan 11, 2017 reply Follow flag "every disk block will map with one binary bit (not matter it is free or not)" and there are 10M blocks . So shouldnt it be 10M bits ? Correct me if wrong 1 1 replyShare mcjoshi commented Feb 20, 2017 reply Follow flag @Dulqar Yes, it is $10M$ bits. But we are asked Number of blocks needed to keep track of free space. So, divided by 64K. 0 0 replyShare Please log in or register to add a comment.
7 7 votes in bit map each block is represented by a single bit 0/1. so total no. of blocks = 80GB/8KB = 10M blocks block size = 8KB hence it can contain information of 8K*8bit =64K blocks so required blocks are = 10M / 64K = 160 blocks Pankaj kumar answered Sep 21, 2016 Pankaj kumar comment Share Follow See all 3 Comments 3 3 Comments reply mcjoshi commented Sep 21, 2016 reply Follow flag @pankaj elaborate this " it can contain information of 8K*8bit =64K blocks ". Why $8$ bit? 0 0 replyShare Pankaj kumar commented Sep 21, 2016 reply Follow flag 1byte =8 bit man. 0 0 replyShare mcjoshi commented Sep 21, 2016 reply Follow flag ohh! I just missed it and it caused me $-ve$ marks. Thanks bro 0 0 replyShare Please log in or register to add a comment.
0 0 votes 160 blocks ....is it right? Alok Verma answered Sep 22, 2016 Alok Verma comment Share Follow 0 reply Please log in or register to add a comment.