Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2002 13:13:23 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys proc.h
Message-ID:  <200208232013.g7NKDNGo033814@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
julian      2002/08/23 13:13:23 PDT

  Modified files:
    sys/sys              proc.h 
  Log:
  Add the complex state TDS_SUSP_SLP.
  
  This state is to allow some experimentation and not YET used..
  The theory is that a thread that is about to sleep is placed on the sleep
  queue and then discovers it should suspend, and is placed on suspend queue.
  (these are separate queues and it can be on both). It will not become runnable
  until it has been removed from BOTH queues. i.e. a wakeup event
  has occured AND the process has been unsuspended. If it were not on the sleep
  queue when suspended, then the (possibly only) wakeup event might arrive and
  not find any process to wake up. this would result in the thread
  sleeping 'forever' when the suspension is lifted. This state will
  transition to one of TDS_SLP or TDS_SUSPENDED, depending upon which
  constraint is lifted first.
  
  Revision  Changes    Path
  1.235     +2 -1      src/sys/sys/proc.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208232013.g7NKDNGo033814>