Skip to content

bishu21/ConcurrencyAndLockOnLoggerClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ConcurrencyAndLockOnLoggerClient

Implementation of Logger Client have below 3 methods --->

  1. Start a processId for given timestamp---- void start(String processId, long timeStamp);
  2. End a processId for given timestamp --- void end(String processId, long timestamp);
  3. Poll mechanism to fetch latest message ---- String poll();

Output --->

  1. {3} process started at {7} and ended {15}
  2. {2} process started at {8} and ended {12}
  3. {1} process started at {12} and ended {15}

About

Asked in Google interview !! Concurrency Problem

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages