Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

IStrategy and ISystemListener
 Post subject: IStrategy and ISystemListener Post rating: 0   New post Posted: Mon 11 Jan, 2010, 19:34 

User rating: 0
Joined: Mon 11 Jan, 2010, 16:13
Posts: 4
Can someone help with these questions:

1. IStrategy objects run in their own thread correct?
2. Does executing "new ISystemListener()" spawn a new thread?

I am writing a java app to function standalone and I'm trying to determine what API calls will launch new threads. I'm very concerned about sync issues.

Thanks in advance


 
 Post subject: Re: IStrategy and ISystemListener Post rating: 0   New post Posted: Tue 12 Jan, 2010, 11:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi
Quote:
1. IStrategy objects run in their own thread correct?
Yes
Quote:
2.Does executing "new ISystemListener()" spawn a new thread?
No


 
 Post subject: Re: IStrategy and ISystemListener Post rating: 0   New post Posted: Tue 12 Jan, 2010, 13:46 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
But ISystemListener methods will be called in different threads, so make sure you are synchronizing when accessing variables from this methods


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com