title: How to find dlls that are being using?
body: <p>I lack the concept of dll reference.<br />
  Please let me know if there's anything I think is wrong.</p>
  <p>Not [<strong>Status referencing dll</strong>], but [<strong>Status when dll is using</strong>].<br />
  I'll give you a clear example because the title alone is ambiguous to express what I'm trying to say.</p>
  <p>The Main Program reference to A.dll and B.dll.<br />
  The following is the source in the dlls.</p>
  <pre><code>//A.dll
  namespace A {
      public static void Work10sec() {
          //Working for 10 seconds.
      }
  }
  //B.dll
  namespace B {
      public static void Work5sec() {
          //Working for 5 seconds.
      }
  }
  </code></pre>
  <p>And I call A.Work10sec() and B.Work5sec() in the main program.</p>
  <pre><code>namespace Main {
      static class Program {
          [STAThread]
          static void Main() {
              A.Work10sec();
              B.Work5sec();
          }
      }
  }
  </code></pre>
  <p>I think after starting the program, A.dll is in use for 0-10 seconds. and B.dll is in use for 10-15 seconds.<br />
  If so, how does the Main Program know that A.dll is in use in 0-10 seconds?<br />
  and How do I know that A.dll is not used in 10-15 seconds in the Main Program?</p>
  <hr />
  <p>There is a misunderstanding, so I edited the question.<br />
  Thread.Sleep() ==&gt; //Working other</p>
  <hr />
  <p>Result: The dll being referred to soon proved to be the dll being used.</p>
  <pre><code>//A.dll
  namespace A {
      public static bool used = false;
      public static void Work10sec() {
          used = true;
          //Working for 10 seconds.
          used = false;
      }
  }
  </code></pre>
  <p>Please let me know if there is a better way.</p>