[SP-pm] Threads em Perl

Fernando Oliveira fernandocorrea at gmail.com
Fri May 1 21:39:20 PDT 2009


"For new code the use of the Thread module is discouraged and the direct use
of the threads and threads::shared modules is encouraged instead."

2009/5/1 Daniel de Oliveira Mantovani <daniel.oliveira.mantovani em gmail.com>

>
> "A interface atual para threads em Perl é definida pelo módulo Thread"
> http://search.cpan.org/~nwclark/perl-5.8.9/lib/Thread.pm<http://search.cpan.org/%7Enwclark/perl-5.8.9/lib/Thread.pm>
>
> Você também pode usar a função Fork.
> "Essa função cria dois processo a partir de um chamado a syscall, Se tiver
> sucesso, a função retorna a ID de processo do novo filho para o processo pai
> e 0 para o processo filho. Se o sistema não tiver recursos suficientes para
> alocar um novo processo, a chamada falhará e retornará undef. Os descritores
> de arquivo ( e às vezes os bloqueios sobre esses descritores) são
> compartilhados, enquanto tudo mais é copiado - ou pelo menos é feito para
> parecer assim."
>
> Para mais informações:
> perldoc perlthrtut
> perldoc -f fork
>
> Dúvidas ?
>
> []'s
>
> 2009/4/30 Leoni Sandes <leonisbs25 em gmail.com>
>
>> Olá gostaria de saber como posso mexer e manipular Threads em Perl alguem
>> poderia me ajudar? Já procurei na internet mas a maioria dos materiais sobre
>> Perl estão em e ingles e se uso os tradutores muitas vezes traduzem errado e
>> dificulta para aprender...se alguem poder ajudar agradeço!
>>
>> _______________________________________________
>> SaoPaulo-pm mailing list
>> SaoPaulo-pm em pm.org
>> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>>
>
>
>
> --
> http://mantovanihouse.blogspot.com/
> This is my poney:
> -------(\_------------_/)-----------
> -------)--(----------)--(-----------
> ------(----(---------)----)----------
> -------)----(-------)----(-----------
> -------(----(-------)----)-----------
> --------\_-(\\.---.//)-_/------------
> ----------\)' -8--8- '(/--------------
> -----------/------------\---------------
> ----------(--)--------(--)--------------
> ------------(_c__c_)----------------
> ----------------------------------------
> perl -MLWP::Simple -le 'grep{ print $1 if /href="(http.+?)"/}split($/,get("
> http://www.perl.org.br"))'
>
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>



-- 
Just another Perl Hacker,
Fernando (SmokeMachine)
http://perl-e.org
-------------- Pr?xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20090502/7088fbb6/attachment.html>


More information about the SaoPaulo-pm mailing list