Results 1 to 2 of 2

Thread: sleep()

  1. #1
    whitecap Guest

    Default sleep()

    Is there a way like sleep() to hold the script from running for a while? This is to control the concurrency between mutiple sessions.

  2. #2
    Join Date
    Dec 1969

    Default You need a component... offers such a component, for free.<BR><BR>HOWEVER... This will *NOT* control concurrency without a *LOT* of care on your part...and even then might be subject to bugs because VBS doesn&#039;t have any "test and swap" capability. Or does it? Well, effectively it does: If that is all you want to do, investigate the Application.Lock and Application.Unlock methods. They *will* do so. And no sleep() needed (when a Lock request runs into a lock already present, that thread automatically sleeps awaiting the unlock).<BR><BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts