From: Chris Bailey Date: 2007-10-03T00:32:07+09:00 Subject: A question about threads. ------=_NextPart_000_01AF_01C804E7.DAB942F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What do I need to do to make the following code write the input from = each thread to all other active threads? I can't figure out how to = access the list of threads in GServer. #Begin Test Server require 'GServer' class TestServer < GServer def initialize(port=3D4000, *args) super(port, *args) end #end initialize def serve(io) client_info =3D Hash.new #Hash to contain connected client = information. input =3D io.gets.strip #Input from client, stripped to = remove newline. client_info['name'] =3D input loop do str =3D io.gets io.write("#{client_info['name']}: #{str}") end #end loop end #end serve end #end TestServer server =3D TestServer.new server.audit =3D true server.start server.join ------=_NextPart_000_01AF_01C804E7.DAB942F0--