<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil">
    <title>gmane.comp.lang.ruby.region.brasil</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/361"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/360"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/359"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/358"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/357"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/356"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/355"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/354"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/353"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/352"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/351"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/350"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/349"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/348"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/347"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/346"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/345"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/344"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/361">
    <title>Paulo Benatto deixou uma mensagem para você no Badoo!</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/361</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Badoo</dc:creator>
    <dc:date>2010-09-29T06:23:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/360">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/360</link>
    <description>&lt;pre&gt;
Paulo, como pode ser visto no gist que eu colei emails atrás, o
negócio é ao contrário, o programa interrompe a execução da thread, a
thread só vai manter o programa rodando caso você chame o método join
explicitamente, e no código que o Wesley postou, não tem join

O Wesley não disse exatamente qual o comportamento ele queria, mas
caso ele queira mesmo abrir um outro processo dentro do programa dele,
forks podem ser uma boa mesmo

2010/5/10 Paulo Geyer &amp;lt;paulogeyer&amp;lt; at &amp;gt;gmail.com&amp;gt;:



&lt;/pre&gt;</description>
    <dc:creator>Rafael Souza</dc:creator>
    <dc:date>2010-05-10T21:08:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/359">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/359</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Arthur M. Meskelis</dc:creator>
    <dc:date>2010-05-10T21:08:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/358">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/358</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Paulo Geyer</dc:creator>
    <dc:date>2010-05-10T20:44:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/357">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/357</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Wesley Oliveira</dc:creator>
    <dc:date>2010-05-10T20:25:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/356">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/356</link>
    <description>&lt;pre&gt;Olá pessoal... tentem assim

threads = Array.new
threads &amp;lt;&amp;lt;
Thread.new do
  puts "inicio"
  Kernel.sleep(5)
  puts "fim"
end

puts "fim do script aguardando a thread terminar"
threads.each{|t| t.join}


Rafael Souza escreveu:
&amp;gt;   &lt;/pre&gt;</description>
    <dc:creator>Alexandre Riveira</dc:creator>
    <dc:date>2010-05-10T19:49:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/355">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/355</link>
    <description>&lt;pre&gt;aqui rodou assim: http://gist.github.com/396405

dá uma olhada no código e nas últimas linhas, o último Time.now está lá

não sei se tem alguma diferença nisso em relação a versão, a que eu
estou usando aqui é a 1.8.7

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0]


2010/5/10 Wesley Oliveira &amp;lt;waeoliveira&amp;lt; at &amp;gt;gmail.com&amp;gt;:



&lt;/pre&gt;</description>
    <dc:creator>Rafael Souza</dc:creator>
    <dc:date>2010-05-10T19:20:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/354">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/354</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Wesley Oliveira</dc:creator>
    <dc:date>2010-05-10T19:03:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/353">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/353</link>
    <description>&lt;pre&gt;Wesley, tem como tu colar um código para que possamos ver oq e como tu
está fazendo?

O programa principal não espera (ou não deveria) a thread executar,
deve ter alguma coisa errada no código.

Abraço

Rodrigo Kochenburger
Founder/CTO at Wellknown.as Inc.
http://wellknown.as
http://blog.divoxx.com



2010/5/10 Wesley Oliveira &amp;lt;waeoliveira&amp;lt; at &amp;gt;gmail.com&amp;gt;:
&lt;/pre&gt;</description>
    <dc:creator>Rodrigo Kochenburger</dc:creator>
    <dc:date>2010-05-10T15:49:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/352">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/352</link>
    <description>&lt;pre&gt;Aí é um fork.

puts "Início do programa!"
fork {
  puts "Início do fork"
  sleep 5
  puts "Fim do fork"
}
puts "Fim do programa"

On May 10, 2010, at 11:38 AM, Wesley Oliveira wrote:

&lt;/pre&gt;</description>
    <dc:creator>Paulo Geyer</dc:creator>
    <dc:date>2010-05-10T15:17:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/351">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/351</link>
    <description>&lt;pre&gt;Thread.start do
  sleep 5
  puts "dentro da thread"
end

puts "saindo"

# ouput

[rafael] ~/projects
$ ruby thread_test.rb
saindo

[rafael] ~/projects
$


o comportamento padrão é sair do programa e liberando a aplicação
agora se tu chamar o método join, ele não libera


t = Thread.start do
  sleep 5
  puts "dentro da thread"
end

t.join
puts "saindo"

# output

[rafael] ~/projects
$ ruby thread_test.rb
dentro da thread
saindo

[rafael] ~/projects
$

ele ficou 5 segundos parados e depois imprimiu as duas linhas

Wesley, talvez tu esteja chamando o join no seu código

2010/5/10 Paulo Geyer &amp;lt;paulogeyer&amp;lt; at &amp;gt;gmail.com&amp;gt;:



&lt;/pre&gt;</description>
    <dc:creator>Rafael Souza</dc:creator>
    <dc:date>2010-05-10T16:01:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/350">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/350</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Paulo Geyer</dc:creator>
    <dc:date>2010-05-10T15:50:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/349">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/349</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Arthur M. Meskelis</dc:creator>
    <dc:date>2010-05-10T15:22:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/348">
    <title>Re: Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/348</link>
    <description>&lt;pre&gt;Já ouvir falar que Ruby simulava threads com software.
Não tenho a menor idéia se isso pode ter algo relacionado.

[]`s

On May 10, 2010, at 11:38 AM, Wesley Oliveira wrote:


Bruno Buccolo
&lt;/pre&gt;</description>
    <dc:creator>Bruno Buccolo</dc:creator>
    <dc:date>2010-05-10T15:27:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/347">
    <title>Ruby e Thread</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/347</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Wesley Oliveira</dc:creator>
    <dc:date>2010-05-10T14:38:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/346">
    <title>Paulo Geyer has invited you to Dropbox</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/346</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Dropbox</dc:creator>
    <dc:date>2009-11-16T21:33:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/345">
    <title>Re: Configuração do database.yml</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/345</link>
    <description>&lt;pre&gt;com socket  (localhost):

development:
  adapter: mysql
  database: meu_database
  username: root
  password: senha
  socket: /tmp/mysql.sock
  encoding: utf8

sem socket socket  (ip 10.0.0.1):

development:
  adapter: mysql
  database: meu_database
  username: root
  password: senha
  host: 10.0.0.1
  encoding: utf8


Abraço,


Alexandre Riveira



Flavio Lima escreveu:
&amp;gt;   &lt;/pre&gt;</description>
    <dc:creator>Alexandre Riveira</dc:creator>
    <dc:date>2009-08-14T12:02:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/344">
    <title>Configuração do database.yml</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.region.brasil/344</link>
    <description>&lt;pre&gt;_______________________________________________
Ruby-l mailing list
Ruby-l&amp;lt; at &amp;gt;listas.unicamp.br
https://www.listas.unicamp.br/mailman/listinfo/ruby-l
&lt;/pre&gt;</description>
    <dc:creator>Flavio Lima</dc:creator>
    <dc:date>2009-08-14T01:29:04</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.region.brasil">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.region.brasil</link>
  </textinput>
</rdf:RDF>

