my usermond daemon is stuck in sleep state

From: Peter Parian (peter.parian@sun.com.ph)
Date: Mon May 20 2002 - 03:10:35 EDT


hi to everyone,

    I have created a daemon, usermond, that monitors the total
    time a user logs in and the total time it is busy. It is
    running on Solaris 2.5.1.

    The daemon uses three threads, the first thread gathers
    information regarding the busy and log in time for each user.
    It sleeps for about 10 seconds before doing again its routine.
    The second thread, checks for logins and logouts and updates
    the link list of users that the first thread uses to store
    the gathered information. The third thread saves the link
    list to a file. Both the second and third threads are suspended
    some point in the first thread. The first thread continues
    the running of the two theads if it is its turn to execute.

    Now the problem is, on some machines where it is deployed,
    the daemon won't exit from sleep state. What could possibly
    cause this problem? How can I identify which thread
    stucks in sleep state?

    Hope to hear from you guys.

    thank you very much.

PETER P. PARIAN III
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:21 EDT