{"translation":"https://translate-dev.freebsd.org/api/translations/freebsd-doc/articles_linux-emulation/en/?format=json","source":["As there is a difference in view as what to the idea of a process ID and thread ID is between FreeBSD and <trademark class=\"registered\">Linux</trademark> we have to translate the view somehow. We do it by PID mangling. This means that we fake what a PID (=TGID) and TID (=PID) is between kernel and userland. The rule of thumb is that in kernel (in Linuxulator) PID = PID and TGID = shared -&gt; group pid and to userland we present <literal>PID = shared -&gt; group_pid</literal> and <literal>TID = proc -&gt; p_pid</literal>. The PID member of <literal>linux_emuldata structure</literal> is a FreeBSD PID."],"previous_source":"","target":["As there is a difference in view as what to the idea of a process ID and thread ID is between FreeBSD and <trademark class=\"registered\">Linux</trademark> we have to translate the view somehow. We do it by PID mangling. This means that we fake what a PID (=TGID) and TID (=PID) is between kernel and userland. The rule of thumb is that in kernel (in Linuxulator) PID = PID and TGID = shared -&gt; group pid and to userland we present <literal>PID = shared -&gt; group_pid</literal> and <literal>TID = proc -&gt; p_pid</literal>. The PID member of <literal>linux_emuldata structure</literal> is a FreeBSD PID."],"id_hash":7924950461666399546,"content_hash":7924950461666399546,"location":"article.translate.xml:1704","context":"","note":"(itstool) path: sect3/para","flags":"","labels":[],"state":100,"fuzzy":false,"translated":true,"approved":false,"position":261,"has_suggestion":false,"has_comment":false,"has_failing_check":true,"num_words":101,"source_unit":"https://translate-dev.freebsd.org/api/units/229207/?format=json","priority":100,"id":229207,"web_url":"https://translate-dev.freebsd.org/translate/freebsd-doc/articles_linux-emulation/en/?checksum=edfb1474ea31953a","url":"https://translate-dev.freebsd.org/api/units/229207/?format=json","explanation":"","extra_flags":"","pending":false,"timestamp":"2021-01-09T14:33:00.231088Z"}