Seitenanfang

When PID is not enough: Unique Perl interpreter ID

Dieser Post wurde aus meiner alten WordPress-Installation importiert. Sollte es Darstellungsprobleme, falsche Links oder fehlende Bilder geben, bitte einfach hier einen Kommentar hinterlassen. Danke.


A not so recent James Bond movie was called The PID is not enough (well, not exactly, but near by). The movie was good to watch but didn't provide a solution for real world problems: What to do if a PID is not specific enough, maybe because of threads?

This question was recently discussed on PerlMonks and it turned out that a unique Perl interpreter ID already exists but isn't reachable from pure Perl. Yes, there is some value not exported as a special variable, but a little tweak using inline C code will do the job. Just look at ikegami's solution...

 

Noch keine Kommentare. Schreib was dazu

Schreib was dazu

Die folgenden HTML-Tags sind erlaubt:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>