title: application domains and threads
body: <p>A quote from MSDN: <a href="http://msdn.microsoft.com/en-us/library/6kac2kdh.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/6kac2kdh.aspx</a></p>
  
  <blockquote>
    <p>One or more managed threads
    (represented by
    System.Threading.Thread) can run in
    one or any number of application
    domains within the same managed
    process. Although each application
    domain is started with a single
    thread, code in that application
    domain can create additional
    application domains and additional
    threads. <strong>The result is that a managed
    thread can move freely between
    application domains inside the same
    managed process</strong>; you might have only
    one thread moving among several
    application domains.</p>
  </blockquote>
  
  <p>I tried to write code with 2 application domains that share one thread. But i gave up. I have really no idea how this is possible. Could you give me a code sample for this?</p>