GeeksforGeeks » Interview Questions

Adobe Interview Question for Software Engineer / Developers about Operating Syst

(1 post)
  • Started 10 months ago by Priya
  1. Priya
    guest
    Posted 10 months ago #

    one system API available setOStimer(time n, function ptr, function arg)
    it sets time for n sec. after expiration of timer it calls function.
    if another timer set with setOStimer, it will erase previously sets timer.
    Ex. at t = 0, setOStimer(5,fn,arg)
    at t = 4, setOStimer(10,fn1,arg1)
    now first timer removed.
    Question is using this API, write own API setTimer(), it will use given API. So that it will not erase previously set timer.


Reply

You must log in to post.

RSS feed for this topic