[erlang-questions] check which scheduler process is running on

Sverker Eriksson sverker.eriksson@REDACTED
Wed May 21 14:18:55 CEST 2014


and... processes are in general not bound to a specific scheduler.
Which means erlang:system_info(scheduler_id) returns the scheduler
the process *was* running on.

/Sverker, Erlang/OTP


On 05/21/2014 01:07 PM, Tony Rogvall wrote:
> 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 <adelzhang@REDACTED> wrote:
>
>> 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
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> "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"
>
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140521/5236f931/attachment.htm>


More information about the erlang-questions mailing list