🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8069

Re: Variable Thread through a method

#8069
From: Steven Tseng
Date: Mon, 23 Apr 2001 19:17
38 lines
2244 bytes
Thanx for your reply.
What my project is create a reliable ring base multicast.
Why I want to do is everytime receiving a message from neighbor, it will
create a specify thread for this message,
it will sleep a while, then check is there any broken on the ring, if not,
then it will deliver this message to upper
layer.


String Threadname= new String(m.MsgID);
RrmMsgThread Threadname+Integer.toString(m.MsgID) = new RrmMsgThread();
Threadname+Integer.toString(m.MsgID).start();

The error code is 52 and 53, just not allow me using this kind of statement.

/Steven


Joi Ellis [TeamB] <joi@aravox.com> wrote in message news:3ae466f5_1@dnews...
> Steven Tseng <stevenpansy@yahoo.com> wrote:
> > Dear all,
>
> > I got a problem, I want to create a Thread when program call a specify
> > method (there will be many threads....),
> > but compiter does not allow me using a variable as a thread name (I can
not
> > predict how many threads will create,
> > so I can not use a specify thread name), could someone help me for
solving
> > this problem?/?
>
> Please post a snippet of code and the error message(s) you're seeing.
>
> --
> Joi Ellis (TeamB)
> No direct email, please.
> For best results, post on news server newsgroups.borland.com!
> Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3ae47fc9_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!unlisys!news.snafu.de!news.tele.dk!130.133.1.3!fu-berlin.de!news.boerde.de!dnews
References: <3ae46543_1@dnews> <3ae466f5_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8a66d27676cb60b0
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-23 12:49:46 PST
Reply-To: "Steven Tseng" <GetYourRedOn@yahoo.com>
From: "Steven Tseng" <GetYourRedOn@yahoo.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3ae46543_1@dnews> <3ae466f5_1@dnews>
Subject: Re: Variable Thread through a method
Date: Mon, 23 Apr 2001 15:17:05 -0400
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 24.30.16.3
Message-ID: <3ae47fc9_2@dnews>
X-Trace: dnews 988053449 24.30.16.3 (23 Apr 2001 12:17:29 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!unlisys!news.snafu.de!news.tele.dk!130.133.1.3!fu-berlin.de!news.boerde.de!dnews