Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 is multi-threaded, but is it ever multi-process?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NT8 is multi-threaded, but is it ever multi-process?

    Hello,

    My goal is to read and write data to the same text file from many NT8 strategies running in many concurrent optimizations and many strategies running concurrently on many charts in real-time.

    I realize that inside of a single instance of NT8, both strategy optimizations as well as real-time strategy execution on charts run on multiple threads, so it is important to make my code that writes to the text file thread-safe.

    If a single instance of NT8 runs under a single process (with many threads) and never spawns other processes, I could just use the easy to use and highly performant ReaderWriterLockSlim class ( https://docs.microsoft.com/en-us/dot...ew=netcore-3.1 ) but if a single instance of NT8 spawns other processes I would have to use the much less performant Mutex class ( https://docs.microsoft.com/en-us/dot...ew=netcore-3.1 ) to ensure that the text file is read from and written to in not only a thread-safe manner but also a process-safe manner.

    So my question is:

    NT8 is definitely multi-threaded, but is it ever multi-process? I.e. could multiple strategies running concurrently in multiple Strategy Analyzer optimizations and running on multiple charts in real-time ever be running in any process other than the one under which NinjaTrader.exe executes?

    Thanks in advance!

    EquityTrader

    #2
    Originally posted by EquityTrader View Post
    NT8 is definitely multi-threaded, but is it ever multi-process? I.e. could multiple strategies running concurrently in multiple Strategy Analyzer optimizations and running on multiple charts in real-time ever be running in any process other than the one under which NinjaTrader.exe executes?
    No, there can only be one NinjaTrader.exe process per machine.

    Comment


      #3
      Hello EquityTrader,

      Thanks for your question.

      We have confirmed with others in the office. Under almost all cases that from a user perspective, the environment is single process. There can be cases where an adapter takes another process, but this would not be relevant for regular use or scripting with the platform.

      We look forward to assisting.
      Last edited by NinjaTrader_Jim; 05-13-2020, 07:25 AM.

      Comment


        #4
        Thank you very much for your help, NinjaTrader_Jim and bltdavid. This is great news.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        79 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X