comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » global singleton object ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: global singleton object ? [message #26968 is a reply to message #26918] Wed, 03 October 2001 11:18 Go to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
"Pavel A. Romashkin" wrote:
>
>> As for why a singleton is useful, just wait til IDL is multithreaded. When
>> you
>> have multiple processes that need acces to information (info that can be
>> changed by the user) then a singleton object is very nice! Very Very Nice.
>
> That probably will depend on what is allowed to be global between the
> threads. My singleton relies on a function being global, and heap memory
> addresses being global, too. Will each thread use separate heap
> addressing? Now, that and the synchronization of the threads is a
> separate can of worms that I have no knowledge about. It is almost the
> same as distributed computing, isn't it?
>

I think the idea of what multi-threading will bring is getting a bit
carried away. I fully expect it to be limited to RSI-controlled code,
and not configureable by the user. I.e., I don't suspect you'll be able
to craft your own thread-aware routines, but rather rely on the internal
multi-threading of certain built-in routines for increased speed.
Someone please correct me if I'm wrong.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Declaration of variables in IDL
Next Topic: Re: Using IDL with Java

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:43:40 PDT 2025

Total time taken to generate the page: 0.00399 seconds