StarkSeek
EventsJobs
Sign in

Menu

Practice

  • DSA sheetsProblem sheets by topic and company
  • AptitudeNewQuant, logic, data and verbal, with fresh questions
  • SQLNew400 interview-style SQL problems with checked solutions
  • CS fundamentalsNewOS, DBMS, networks and OOP, with labs you can run
  • Skill tracksProject-based learning in 12 domains

Interview prep

  • Mock interviewAIPractise with an AI interviewer by voice
  • Code ComprehensionNewRead, fix and explain real code with an AI assistant
  • EventsHackathons, workshops, meetups and contests
  • JobsOpen roles from companies hiring through StarkSeek

Pricing

  • MembershipsCompare plans and what each includes
  • Add-ons and creditsExtra credits when you need more
  • Rewards store

For Companies

  • Hire talentAssess real work, read the evidence behind every score and decide with your team
  • Host an eventHackathons, coding contests, workshops and meetups, with certificates and a live leaderboard
Sign in
CS fundamentals/Operating Systems/Banker's algorithm lab

Lab

Banker's algorithm lab

Edit the matrices, see Need and the safe sequence, and test whether a request can be granted.

Read the topicPractise it

The state of the system

Allocation, maximum claim and what is free

Allocation

ABC
P0
P1
P2
P3
P4

Maximum

ABC
P0
P1
P2
P3
P4

Available

ABC
P0
Try

Is it safe?

Safe: an order exists

Need = Maximum − Allocation

ProcessABC
P0743
P1122
P2600
P3011
P4431

Safe sequence: P1 → P3 → P0 → P2 → P4

  1. P1 needs 1 2 2, which fits. When it finishes it returns 2 0 0, so free becomes 5 3 2.
  2. P3 needs 0 1 1, which fits. When it finishes it returns 2 1 1, so free becomes 7 4 3.
  3. P0 needs 7 4 3, which fits. When it finishes it returns 0 1 0, so free becomes 7 5 3.
  4. P2 needs 6 0 0, which fits. When it finishes it returns 3 0 2, so free becomes 10 5 5.
  5. P4 needs 4 3 1, which fits. When it finishes it returns 0 0 2, so free becomes 10 5 7.

Can a request be granted?

Check it against the need, what is free, and safety

Get product updates

New tracks and events, straight to your inbox.

StarkSeek

Learn by building real projects, practise interview-level DSA, and apply to roles from hiring teams.

Platform

  • Learning tracks
  • Practice problems
  • Aptitude
  • SQL practice
  • CS fundamentals
  • Mock interviews
  • Code Comprehension
  • Events

Resources

  • Host an event
  • For companies
  • Certificates
  • Rewards store
  • Pricing
  • Add-ons
  • Blog

Company

  • Careers
  • Contact us
  • Privacy policy
  • Terms of service

Support

  • contact@starkseek.com
  • community@starkseek.comEvents and organizers
  • partner@starkseek.comCompanies and partnerships

© 2026 StarkSeek. A product of NOKATI LLP.

Recognized by