<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">and... processes are in general not
      bound to a specific scheduler.<br>
      Which means erlang:system_info(scheduler_id) returns the scheduler<br>
      the process *was* running on.<br>
      <br>
      /Sverker, Erlang/OTP<br>
      <br>
      <br>
      On 05/21/2014 01:07 PM, Tony Rogvall wrote:<br>
    </div>
    <blockquote
      cite="mid:5239B0D8-3E16-4751-9DCD-FA429D84EAD7@rogvall.se"
      type="cite">
      <pre wrap="">I think you can not really know if the process is actually executing unless
the Pid =:= self(). Any thoughts about that ?

/Tony


On 21 maj 2014, at 12:01, Adel Zhang <a class="moz-txt-link-rfc2396E" href="mailto:adelzhang@qq.com"><adelzhang@qq.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">hi,

erlang:system_info(scheduler_id) can get the scheduler id that the calling process is running on. But if I only have the pid, how can I know the scheduler id?
_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
      </blockquote>
      <pre wrap="">
"Installing applications can lead to corruption over time. Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"




</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>