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 NullPointStrategies, Today, 05:17 AM
        0 responses
        53 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X