L-5.7: GATE 2007 Question Solved on First Fit,Best Fit and Worst fit with timeline |Operating System

Поділитися
Вставка
  • Опубліковано 12 жов 2024
  • 👉Subscribe to our new channel: / @varunainashots
    In this video we have discussed GATE 2007 Question Solved on First Fit, Best Fit and Worst fit.
    ►Operating System (Complete Playlist):
    • Operating System (Comp...
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ►Design and Analysis of algorithms (DAA):
    • Design and Analysis of...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Data Structure:
    • Data Structure
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on UA-cam: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmash...
    ► Follow us on Threads: www.threads.ne...
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com

КОМЕНТАРІ • 358

  • @heathledger7291
    @heathledger7291 3 роки тому +158

    moral of the story: khali ho to kam pe lag jao "better" time slot ka wait mat karo

  • @naqeeburrahman4709
    @naqeeburrahman4709 3 роки тому +97

    Regarding doubts,
    Consider this problem as fixed partition one as partition of memory is already given in question

    • @sangamkumar6228
      @sangamkumar6228 2 роки тому +4

      Thanks 🙏🙏🙏

    • @AbdulRahman-tj3wc
      @AbdulRahman-tj3wc 2 роки тому +2

      thanks a lot

    • @vkstudy3764
      @vkstudy3764 Рік тому +1

      Thank you

    • @ajaygoswami49
      @ajaygoswami49 Рік тому +3

      but when we insert 14k p2 in 20k then we have extra space which is 6k then when we insert p4 which size is 6k then why it wait until p2 does not completely executed.

    • @varshayamagani8158
      @varshayamagani8158 11 місяців тому

      @@ajaygoswami49 did u get the answer? i too got same doubt

  • @shree2710
    @shree2710 5 років тому +17

    Thank you for sharing this question! It was a bit tricky and of different pattern than the other numericals discussed on partitioning! But you did so well at explaining!

  • @singhsahil833
    @singhsahil833 Рік тому +45

    sir why don't you put j4 in remaining part of 2 block? cause 20-14 is 6 that is best fit for j4

  • @rajanverma6627
    @rajanverma6627 4 роки тому +5

    Awesome 👍. In this age your exp. Of teaching is like 60 year professor. You keep everything in mind while explaining

  • @VantasticMusic
    @VantasticMusic 4 роки тому +34

    Sir, please visit this question again. It does not seem correct. Firstly, 20K slot could have accomodated by J5. J1 - J5 will be finished at 10. This will give room for J6 and J7 (10K + 7K < 20K). The answer must be 18 in that case.

    • @aryan20052
      @aryan20052 Рік тому +5

      the question is for fixed partition scheme, so you can't place J5 at 20K until J2 is completed.

    • @yatharthagupta6182
      @yatharthagupta6182 Рік тому +1

      @@aryan20052 Thank you, I was also having same doubt

    • @KaushikLakshay-cp7nl
      @KaushikLakshay-cp7nl 4 місяці тому

      ​@siddh_15_5no

    • @Learner-b9j
      @Learner-b9j 3 місяці тому

      ​@siddh_15_5 Fitting algorithms are for contiguous memory allocation. That means for fixed allocation too

  • @PujaaShaa
    @PujaaShaa 6 років тому +14

    sir, please solve more and more gate previous year question as this would be really helpful and Thank you for your kind efforts

  • @lifeatovarun
    @lifeatovarun 2 роки тому +7

    sir one thing should also be mentioned in this question by you is that it is fixed partitioned memory allocation ,as fixed algo is used in both case . but still you should mentioned that.

  • @niwanshumaheshwari4534
    @niwanshumaheshwari4534 4 роки тому +12

    Happy Teachers day sir, preparing for my campus placements and your videos really helping me alot. Thanks 🙏🙏

    • @GateSmashers
      @GateSmashers  4 роки тому +7

      All the best.. Lots of blessings

    • @niwanshumaheshwari4534
      @niwanshumaheshwari4534 4 роки тому +1

      @@GateSmashers Thankyou sir

    • @MohammadSami-c8f
      @MohammadSami-c8f 10 місяців тому +1

      @@niwanshumaheshwari4534 Sir, lag gayi kya placement??
      {Even i am a 4th year clg student now and just curious to know about it}

  • @tumharadost1745
    @tumharadost1745 3 роки тому +6

    *This comment is for them who has confusion at J5*
    It is Fixed partition contiguous memory allocation in which number of partition are given and no spanning at all.
    As Fixed Partition , after J4 , it's slot is full (no holes) then we have to make place for J5. Someone has to execute(process) And it is 1st position 'J4' because J4 is executing before J2 a/c to time. Then Your Arrival time of J5 is 8 and burst time is 4 makes total 12(8+4=12).Vice Versa solve all.
    It create me a problem also so I thought it would be great to share with colleague's.

    • @thenoobcoder8834
      @thenoobcoder8834 2 роки тому +3

      But if you watch the previous video of best fit algorithm, at that time sir consecutively allocated the processes if the remaining hole was sufficient enough for the next processes.

    • @armaanajania5356
      @armaanajania5356 9 місяців тому

      for first fit and next fit also would be same logic ?

  • @pythonsm6147
    @pythonsm6147 3 роки тому +72

    Great Stuff! But after assigning j2 6kb is left in the 3rd hole which can fit j4 perfectly. This changes the answer as well. I am a bit confused here.

    • @amulyaarun6617
      @amulyaarun6617 2 роки тому +6

      I have the same doubt too.

    • @shailidwivedi2045
      @shailidwivedi2045 2 роки тому +8

      Yes, may be they forgot , what you are saying is absolutely correct , no need to confuse , solve it and after solving 19k will be answer.

    • @Liamlefe
      @Liamlefe 2 роки тому +37

      You guys are wrong. This memory is not variable size partitioned this is fixed size partitioned. As partitions are fixed before arrival of process and once a process occupies a partition it cannot be used by another process. The space is totally wasted. You cannot use that leftover 6k space

    • @deshrajsingh3244
      @deshrajsingh3244 2 роки тому +1

      Mai be

    • @priyotoshsahaThePowerOf23
      @priyotoshsahaThePowerOf23 2 роки тому

      Then answer will be 27 which is not in option 🌚

  • @prabhattiwari4125
    @prabhattiwari4125 4 роки тому +10

    Sir J2 should be there till 14 seconds because burst time or usage time is 10 seconds. So 4 for J1 + 10 for J2= 14 seconds. Please reply ASAP. Btw you are the best teacher of OS till date.

  • @omkargadekar52
    @omkargadekar52 2 роки тому +1

    Struggling with this question and spend many time , when I found your video, Got cleared !

  • @arnavattri5047
    @arnavattri5047 6 років тому +8

    Awesome work Varun! :) Please solve more gate questions if possible!

  • @kewtomrao
    @kewtomrao 3 роки тому +2

    Easy to think of it like this : Best fit comes into play only when there are multiple free holes available.If there is only a single free hole at the specific time of arrival of job,then no question of best ft.We need to use that slot itself.

  • @mohitagrawal8500
    @mohitagrawal8500 3 роки тому +1

    this is the question of fixed partition and not variable partition because the partition are given to us . and in fixed partition spanning is not allowed so one partition can have only one process

  • @balkrishnapanthi234
    @balkrishnapanthi234 4 роки тому +6

    subscribed all by my heart....you are my best fit..haha.. love from nepal

  • @RedactedBrainwaves
    @RedactedBrainwaves Рік тому

    Despite not speaking Hindi (I assume you're speaking Hindi) your lectures are so clear to me. I must congratulate you. Great teacher!

  • @abhishekSahu11011
    @abhishekSahu11011 4 роки тому +14

    Sir y we didn't put j4 with j2 as j2 occupied 14k nd we had 6k empty space nd we are using best fit???

    • @lol-zw1mz
      @lol-zw1mz 5 місяців тому

      fixed partitioning
      given in the question but not mentioned in the video

  • @shashanksharma6336
    @shashanksharma6336 2 роки тому +8

    Sir, I doubt you only said that in best-fit look for minimum internal fragmentation. So when we assigned J2 in the 20k slot there was a hole created of 6k size and we could have efficiently allocated J4 to that as it fits entirely there. But we didn't do that Why ??

    • @dixxanta
      @dixxanta 2 роки тому

      did u find out the answer??? if so please tell me

    • @dixxanta
      @dixxanta 2 роки тому

      why didn't we allocated in the 20k slot

    • @decodingmathematics9957
      @decodingmathematics9957 2 роки тому

      @@dixxanta It is fixed size partitioning not variable sized

  • @dhruvkaith3160
    @dhruvkaith3160 3 роки тому +2

    Great trick question sir, Thank you.

  • @shima1309
    @shima1309 5 років тому +3

    Sir i also thought the answer is 20 but now its clear its 19.. thank you sir👍👍

  • @lokeshshingadi
    @lokeshshingadi 3 роки тому +1

    This is static partitioning not dynamic partitioning, both static and dynamic are contiguous memory allocation. This is reason we can't put a memory section in segment even if place is enough because it is already occupied.

  • @jeewanprakash1830
    @jeewanprakash1830 5 років тому +1

    Best lesson from this video, LIVE THE PRESENT, DON'T THINK ABOUT FUTURE.

  • @Ritzieworld
    @Ritzieworld 5 років тому +84

    Hello sir ,
    I wanna ask you that when we hv put job j2 .. left slot size is 6k as a hole . So when job j4 came of 6k we should put it thr acc to best fit ..n j5 in 8k slot .. in that case answer will b 12

    • @supamdeepbains5172
      @supamdeepbains5172 4 роки тому +3

      yeah thats tru

    • @akshitadoad765
      @akshitadoad765 4 роки тому +4

      @@inosuke44 u r my best fit

    • @yashjain629
      @yashjain629 4 роки тому

      Yeah You are right.

    • @soniaduhan7890
      @soniaduhan7890 4 роки тому +2

      I have same question

    • @tanishsood4151
      @tanishsood4151 4 роки тому +19

      @@inosuke44 Bro fits can be applied to CONTIGUOUS MEMORY on the whole not just VARIABLE PARTITIONING. Variable partitioning just help in dynamic allocation in the start. First clear your concepts then try to answer

  • @niranjankumarcse-3423
    @niranjankumarcse-3423 2 роки тому

    Amazing teaching skills...🤗🤗
    I enjoying a lot...
    Thank you sir... ❤️❤️❤️❤️

  • @dhruvsaboo7719
    @dhruvsaboo7719 Рік тому

    sir mja aagya iss lecture me gajab question tha

  • @laptopuse-w3g
    @laptopuse-w3g 5 місяців тому +2

    Sir wrong error : If j2 = 14k in 20k block so 20k - 14k = 6k left in 2nd block. So j4 fit in 2nd block not in 1st block. And j5 in 1st block and then at 10 sec all blocks become empty and j6 = 10k put in 2nd block and j7 put in 1st block from 10 to 8 sec = 18sec. will be answer.

  • @snehamhra
    @snehamhra 4 роки тому +2

    Oops i am The One of 90% jo ye Soch rhi thi.. ki J7 12 pr Jaaega... But you Opened my Eyes...!!
    Thank you So much Sir

  • @2295_syedfaisal
    @2295_syedfaisal Рік тому +1

    This Question was asked in KIIT END-SEM 2019 for 4 Marks ... BTW Thanks a lot Sir

  • @sanjanasaloni9650
    @sanjanasaloni9650 8 місяців тому

    The saviourrrrrr for college students!!!!!!!!😇😇

  • @juhimughal9469
    @juhimughal9469 4 роки тому +17

    Sir, why did you not put the process in the free space created after process allocation?

    • @divyamdubey2334
      @divyamdubey2334 Рік тому

      Bro because partioning technique is variable size partition in which no. Of memory slot is fixed

    • @BESTC0DER
      @BESTC0DER Рік тому +2

      @@divyamdubey2334 i think u want to say fixed size partiition.....

  • @meghajha7807
    @meghajha7807 4 роки тому

    Kamal ka smjhate ho ap. Thank you so much sir. God bless you😇

  • @sakshidugar2888
    @sakshidugar2888 3 роки тому +8

    sir you are considering it as fixed partitioning right. If its dynamics partitioning than time taken is less comparatively.Please answer to this sir.

    • @yoshidasan4780
      @yoshidasan4780 2 роки тому +2

      yess,but the sizes of partitions are already mentioned here so it is a case of fixed partitioning

    • @learncseasily3385
      @learncseasily3385 2 роки тому +1

      @@yoshidasan4780 isse pehla wala question mai bhi to size mentioned tha

    • @yoshidasan4780
      @yoshidasan4780 2 роки тому

      @@learncseasily3385 areyy wo process ke hisab sey partition ho raha tha ...isiliye dynamic partitioning

    • @learncseasily3385
      @learncseasily3385 2 роки тому

      @@yoshidasan4780 abh bhi samajh ni aya yaar isse pehle wala gate question ka video mai jo question tha aise to diagram tha sirf 0 , 1 , 2 yeh numbers mentioned ni tha . Mujhe pata kaise challega ki fixed partitioned hai ya variable partitioned hai?

    • @ranjan_rohit
      @ranjan_rohit Рік тому

      @@learncseasily3385 pata chala ki aisa kyu huwa?

  • @jayeshjyj3302
    @jayeshjyj3302 4 роки тому +33

    sir 1 mistake, 20k wale slot me 6k remaining hole h to best fit k according j4 usi me jayega

    • @kshitijpatil6488
      @kshitijpatil6488 4 роки тому +4

      That would be in the case of dynamic, partitioning. Not in fixed size partitioning.

    • @shivanshusuryakar8692
      @shivanshusuryakar8692 4 роки тому +3

      @@Harish-fx2mo but in this question it is not mentioned that it is of fixed partitioning type than variable partitioning So how come we know which method do we have to solve this using??

    • @riyaroy5382
      @riyaroy5382 4 роки тому +3

      20k slot have 6k remaining hole..
      so j4 will placed ....
      j5 placed at 8k slot.
      remaining 2 k (time 4)
      j6 can enter after completed j2...(time 10+1=11)
      j7 can enter after completed j6(time 11+8=19)

      so answer 19

    • @shivanshusuryakar8692
      @shivanshusuryakar8692 4 роки тому

      @@riyaroy5382 but you have to solve using fixed size partitioning!

    • @pratyushkumar3829
      @pratyushkumar3829 4 роки тому +6

      The fitting algorithms can be applied for both fixed and dynamic memory allocation schemes. Even if you're using 'best-fit'.
      Check www.geeksforgeeks.org/best-fit-allocation-in-operating-system/
      Holes are created in both fixed and dynamic memory allocation schemes. It's just that during fixed memory allocation, there's no external fragmentation as spanning is not allowed and hence, compaction cannot be used to combine the remaining holes to place an incoming process into the memory.

  • @riyaroy5382
    @riyaroy5382 4 роки тому +2

    20k slot have 6k remaining hole..
    so j4 will placed ....
    j5 placed at 8k slot.
    remaining 2 k (time 4)
    j6 can enter after completed j2...(time 10+1=11)
    j7 can enter after completed j6(time 11+8=19)
    so answer 19

  • @babookumarheerani50
    @babookumarheerani50 3 роки тому

    great sir keep rocking on

  • @peralacharanraj7699
    @peralacharanraj7699 2 роки тому

    Best explanation sir

  • @AKLESHKUMAR-dr3vm
    @AKLESHKUMAR-dr3vm 5 років тому

    nice sir ji , its very important for less time can be clear all concept of os , amazing , explaination sir.

  • @Aditya95111
    @Aditya95111 4 роки тому

    Superb sir aap great ho sir 👌👌👌

  • @learncseasily3385
    @learncseasily3385 2 роки тому +1

    I think this is fixed size partitioning technique even sir is using the word Slots that means those are slots and slots are created in fixed size partitioning technique

  • @govind1937
    @govind1937 6 років тому

    excellent teaching style sir!!!

  • @manjotkaur5463
    @manjotkaur5463 4 роки тому +8

    Sir why we cannot allocate 6k of 3 slot to j4 job.... As you explained in last video of best fit first fit

    • @vishaltrivedi540
      @vishaltrivedi540 2 роки тому +1

      Have you figured it out? I was also thing the same thing. On the other hand since he is not tracking free space there is a possibililty he might have missed it.

    • @Sagar-it5mf
      @Sagar-it5mf 2 роки тому

      We have to follow fixed partition therefore at a time we can put one process in 1 block

    • @killua562
      @killua562 2 роки тому

      @@Sagar-it5mf how do we know if it is fixed or variable?

  • @ankitabhattacharjee5669
    @ankitabhattacharjee5669 2 роки тому +5

    But although if I consider it is the fixed size partion then also we can accommodate this j4(6k) cause here we don't split the process......the whole process itself can accommodate within this 3rd hole portion

  • @ankitabanerjee9979
    @ankitabanerjee9979 Рік тому

    Well described. Thank you 🙏

  • @karnprashantpk
    @karnprashantpk 2 роки тому

    this was an eye-opening question!!!!!!!!!!!!!!!!

  • @Ak-.-47
    @Ak-.-47 3 роки тому

    this question was really great ..................one level up question

  • @somnathmore1082
    @somnathmore1082 Рік тому

    I watched Playlist whole but this video is best

  • @ammarakhattak9031
    @ammarakhattak9031 Рік тому

    It works! Thanks a lot.

  • @1511kanika
    @1511kanika 5 років тому

    What a simplified explanation..thnku sir

  • @ShaliniSingh-xc5rn
    @ShaliniSingh-xc5rn 5 років тому +1

    God bless u sir... thank u so much

  • @mohd.faizqureshi4581
    @mohd.faizqureshi4581 3 роки тому +5

    I have a question, when we use the 20k slot to store J2(14 k), we ate left with 6k memory in the slot.... Can't we use the 6k memory to store other jobs...???

  • @shamoilrao4283
    @shamoilrao4283 10 місяців тому

    very helpful sir.....Thank you👍

  • @Hooow410
    @Hooow410 2 роки тому +2

    sir i have a doubt when filling j2 to the 20k slot as the j2 have only 14k so we have remaining 6k on that perticular hole so why you are not putting j4 on that remaining 6k hole ?

  • @komalgupta356
    @komalgupta356 5 років тому

    Excellent👍👏

  • @ayushjoon9526
    @ayushjoon9526 Рік тому +1

    i have a doubt, as it best fit so why we dont fill J4 at remaning portion where J2 filled because it left 6k space where we can fill J4 as well we fill J5 at 8k

  • @shalinimishra3805
    @shalinimishra3805 3 роки тому

    This was really too helpful..Thanks for all your efforts

  • @saamiashafqat4279
    @saamiashafqat4279 5 місяців тому

    but if we consider the 20k block to leave behind 6k hole it can be used by J5 and then J6 takes the 20k hole at 10 second when J2 ends. In this moment J7 is assigned to the 8k hole since all the previous jobs have already completed before the 10 second mark and J7 should take 10+8 = 18 time which is not an option.

  • @mayankshekher973
    @mayankshekher973 Місяць тому

    @GateSmashers sir please visit this question again because job allocation is not proper way🙏🙏🙏

  • @rakshithah2976
    @rakshithah2976 3 роки тому +3

    Assume J6 request size to be 4k.
    At time 2, can we place J6 in the 4k partition or should we wait for J5 to be placed first ?

  • @kanhagaur9690
    @kanhagaur9690 2 роки тому +1

    6:54 why we not allocating J4 job in remaining part of 2 memory space that is 6 k(20k-14k) ?

  • @Manish-gl7uv
    @Manish-gl7uv 4 роки тому

    Great sir

  • @s......g....4415
    @s......g....4415 4 роки тому +2

    For all those who are getting confused over 6k remaining of the 20k slot........here the question is based on Fixed partitioning and not dynamic.....means the partition remains fixed.......IN FIXED PARTITION ...EACH PARTITION IS ALLOWED TO CONTAIN ONLY ONE PROCESS !!! ......and here we have these 4 (0, 1, 2, 3) numbered fixed partitions.

    • @abhisheksaini5071
      @abhisheksaini5071 4 роки тому

      yes 1 partition me ek hi process allocate hoga .

    • @ajinkya-wasnik
      @ajinkya-wasnik 2 роки тому

      How do we know question is of fixed partitioning, in previous video also it didn't had it mentioned that it is having variable partitioning?

  • @drdemon6914
    @drdemon6914 3 роки тому

    If j7 had waited 1s then it would complete in 20 and space hold by j6 could have been allocated to j8 whose end time would be 20 which is 9 less than 39 as we did opposite because as space became available we just put in processses

  • @vinayagarwal3364
    @vinayagarwal3364 5 років тому +1

    Since we are assuming here that all the jobs have arrived at time 0, why are we checking sequentially as j1, j2, j3... We can put j7 at time 0 also and then the answer should be 8

  • @my5tu
    @my5tu Рік тому +4

    I have one doubt after, filling J2 at 20k position we have 6k space left, so instead of putting J4 and J5 in slot of 8k why not put it there at the left space bcz this is 'Best Fit' no internal fragmentation will occur as when we put it in 8k slot 2k internal fragmentation will occur also there is no such rule that it should go in the first left space. Best fit searches the whole memory block...

  • @mayankshekher973
    @mayankshekher973 6 днів тому

    @GateSmashers sir please revisit this question again

  • @_N_E_E_R_A_J_
    @_N_E_E_R_A_J_ 2 роки тому

    In partition 2, J6 was residing with an empty space of 10K (as partition size is of 20K), so why not J7 entered to RAM in partition 2 at time 10? Why it has to wait for J6 to complete even when an empty slot is there??
    10:53

  • @Renko-tt4tx
    @Renko-tt4tx Рік тому

    Some tips for Operating System Exam:
    1) Even memory got holes but you didn't.
    2) Hey girl are you memory allocation method coz I have the best fit for hole.
    3) Hey girl are you starvation coz I am always starving for you.
    4) Hey girl are you ostrich algorithm coz you always ignoring me.
    5) Hey girl are you the spaghetti of dining philosopher problem coz I am thinking about you and you are being eaten by others.
    6) Hey girl are you mutual exclusion coz I wanna enter your heart but it's already occupied by someone else.

  • @akshsandhu8351
    @akshsandhu8351 Місяць тому

    Thanks!

  • @eclipse8321
    @eclipse8321 Рік тому +1

    still don't get why the 6K left out by J2 is not used by other processes

  • @sajansekhu8785
    @sajansekhu8785 5 років тому

    thnkk u so much sir....god bless u always...sir

  • @jojven7514
    @jojven7514 Рік тому

    Awesome

  • @priyadharshinidongarekar
    @priyadharshinidongarekar Рік тому +1

    after allocating 14k for J2 ,6k was remaning then why cant we allocate that 6k for j5 rather tha waiting for j4 to exit?

  • @ShuklaShivamAshokbhai
    @ShuklaShivamAshokbhai Рік тому +1

    Sir, after we fit the J2 in 20K slot still we have 6k hole left in that partition so we can accommodate the J5 process which is off 6K in that 20K slot at time zero. Please check if my argument is correct if not please clarify where I am wrong.

    • @eclipse8321
      @eclipse8321 Рік тому

      its not a hole its internal fragmentation issue...hole is in dynamic partitioning when a process is terminated it leaves behind some space which can't be used. Compaction is a solution to this but not recommended.

  • @user-gp3yo7tw1r
    @user-gp3yo7tw1r 6 років тому +12

    Hello sir,
    I also have a doubt that we r using best fit and we r having 6k left over space in the 20k. partition after allocating j2=14k,so why we are not allocating j4 to the 20k block as it is best fit so we will search the entire list then only we can allocate the jobs.So why you have not allocated j4 to that 6k leftover space of 20k partition????

    • @lorewithmaitryeegupta9887
      @lorewithmaitryeegupta9887 6 років тому

      Sir I have a doubt... why you use full partition as whole, why are you not use the process size space... like j2 and j4 both accommodate that partition but you use only j2 ... why??????

    • @debasishdas2088
      @debasishdas2088 6 років тому

      I have got the same doubt, because best fit is dynamic memory allocation algo and if we put j4 in the remaining 6k of 20k block we will get a different answer. So wanted to know which is the correct approach.

    • @srinuk6600
      @srinuk6600 5 років тому

      @@debasishdas2088 SAME DOUBT

    • @nitingarg293
      @nitingarg293 5 років тому

      same doubt here 🤔🤔

    • @shree2710
      @shree2710 5 років тому +3

      Because here the question is on fixed sized partitioning, not variable sized partitioning.

  • @ankitabhattacharjee5669
    @ankitabhattacharjee5669 2 роки тому

    Sir can you please clarify our confusion?????🙏🏼it will be really very much helpful

  • @Amangupta-cd8to
    @Amangupta-cd8to 4 роки тому +6

    Sir I have question that in 20 k slot there is space for 6k but u will not put here

    • @saurabhsuman318
      @saurabhsuman318 3 роки тому +1

      can anyone explain it??

    • @vedangkavathiya8652
      @vedangkavathiya8652 3 роки тому

      @@saurabhsuman318 because it is contiguous memory allocation.. and also in that it's fixed partitioning..
      In contiguous memory allocation we cannot place more than one process in one block..
      at 9:55 you can listen what sir said..
      Hope it helped!

  • @miraclespiritualastro
    @miraclespiritualastro 4 роки тому

    Bahut maja aa gaya sir

  • @NFCOFFICIAL
    @NFCOFFICIAL 5 місяців тому

    How you are determining whether it is static or dynamic....here u use static fixed continuos memory allocation

  • @ankitmishra5945
    @ankitmishra5945 9 місяців тому

    NOTE: It should be provided that it is Fixed Partition Quetion.

  • @sahilprasantachoudhury911
    @sahilprasantachoudhury911 3 роки тому +2

    Self referential note: this video is important

    • @thepriestofvaranasi
      @thepriestofvaranasi 3 роки тому

      Jyada self referential notes mat bato

    • @sahilprasantachoudhury911
      @sahilprasantachoudhury911 3 роки тому

      @@thepriestofvaranasi sorry,par yeh actually mere exams time pe padhne ke liye mark kiya hua hai.

    • @thepriestofvaranasi
      @thepriestofvaranasi 3 роки тому +1

      @@sahilprasantachoudhury911 pata hai bro mai mazak kar raha tha...waise idea accha hai yaad rakhne ke liye agar kuch imp notes hai toh😬

    • @sahilprasantachoudhury911
      @sahilprasantachoudhury911 3 роки тому

      @@thepriestofvaranasi thank you ☺️

  • @vishaltrivedi540
    @vishaltrivedi540 2 роки тому

    @6:06 why are we not using the remaing space in the hole left by J2 which is 6K?

  • @t0ddu
    @t0ddu 3 роки тому

    after time 2, J3 will leave (in address block 0)
    @4, J1(3) J5(1)
    @8, J4(2[14-19])
    @10, J2(2[0-13])
    now all the blocks are occupied
    J6 need 10 now so it will wait for J2 to finish and it will finish its task from 11to 11+1 = 12
    J7 needs 7 now it will wait for J4 to finish to take up Mem, Block 1 and will start from 9 to 9+8 = 17
    Hence 17 is the answer

  • @ishratkaur1605
    @ishratkaur1605 Рік тому

    at 14:00 , which is question 2, why do we allocate j7 at 11 when we are following best fit acc to the question given ?

  • @vsk9630
    @vsk9630 3 роки тому +1

    👍👍👍

  • @simransingh6137
    @simransingh6137 3 роки тому

    Thank you sir

  • @mindbodyps
    @mindbodyps 3 роки тому

    Thanks sir

  • @bacs_aditisingri
    @bacs_aditisingri 4 роки тому

    Thank you so much sir...🙏

  • @amit_swan
    @amit_swan 4 роки тому

    Best 👍💯

  • @shubhkapoor3600
    @shubhkapoor3600 2 роки тому +1

    sir, why aren't we considering the internal fragmented memory?

  • @chetanbudhathoki1033
    @chetanbudhathoki1033 3 роки тому +1

    when the request j3 came you said there's only one slot(which is 1) is available but could it not goto the slot 2 since it had 6k extra?

  • @aishwaryaratnam154
    @aishwaryaratnam154 6 років тому +2

    Sir I have a doubt here that after accomodating j2 there is a space left of 6k.and it's a case of best fit so according to that we need a smallest possible hole for allocation.so why didn't you place j4 in 20k(2 partition) instead of 8k(1 partition).

    • @chitrabalakrishnan2521
      @chitrabalakrishnan2521 6 років тому +1

      Yes u r right

    • @hasslefreelabs
      @hasslefreelabs 6 років тому +2

      This is because, it will start to find the best fit from the beginning rather than from previous memory location. So first it encounters the top 8k block.
      Hope I am right..!

    • @sayantanray3349
      @sayantanray3349 6 років тому +2

      In fixed partition the entire 20k block will be allocated to the job...that is one of the disadvantages in fixed sized partitioning as internal fragmentation occurs

    • @vishuyadav9767
      @vishuyadav9767 2 роки тому +1

      @@hasslefreelabs in best fit see defination it always iterate over the entire memory to find the minimum possible hole

  • @HelloWorld40408
    @HelloWorld40408 Рік тому

    Thank You SIr

  • @monikashimar6637
    @monikashimar6637 5 років тому +1

    why are we not using hole space 6k created by J2

  • @vennelaranikuna9676
    @vennelaranikuna9676 2 роки тому

    I think the answer is c ie 20
    As
    J1 occupies 2kb ie 2kb in main memory(mm) for 4 sec
    J2 occupies 20kb for 10 sec
    J3 occupies 4kb for 2 sec
    J4 occupies 8kb for 8 sec
    J5 occupies 8 kb for 4 sec(J4+J5 =>8sec+4sec=12)
    J6 occupies 10kb for 1 sec(J2+J6=>10sec+1sec=11sec)
    J7 occupies 7kb for 8 sec(J4+J5+J7=> 8+4+8=20sec)
    If wrong crt me

  • @beingpreceptor
    @beingpreceptor 7 місяців тому

  • @mohdshahid230
    @mohdshahid230 Рік тому

    At time 11 , j7 and j8 both are available so 20k block must be allocated to j8 (not to j7) as internal fragmentation will be minimum according to best fit and the answer must be 20. please explain if I am wrong?

  • @shahjahanperween8282
    @shahjahanperween8282 6 років тому

    Sir please solve more problems on this topic pleaseeee

  • @GAU-C--RATNAKANTAHANSE
    @GAU-C--RATNAKANTAHANSE 3 роки тому

    Thank you sir....