/*
 * Copyright 2014 Real Logic Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package uk.co.real_logic.aeron.examples;

import uk.co.real_logic.aeron.common.BusySpinIdleStrategy;
import uk.co.real_logic.aeron.common.concurrent.SigIntBarrier;
import uk.co.real_logic.aeron.driver.MediaDriver;

public class LowLatencyMediaDriver
{
    public static void main(final String[] args) throws Exception
    {
        ExamplesUtil.useSharedMemoryOnLinux();

        final MediaDriver.Context ctx = new MediaDriver.Context()
            .conductorIdleStrategy(new BusySpinIdleStrategy())
//            .conductorIdleStrategy(new BackoffIdleStrategy(10, 10, 1, 1))
            .receiverIdleStrategy(new BusySpinIdleStrategy())
            .senderIdleStrategy(new BusySpinIdleStrategy());

        try (final MediaDriver ignored = MediaDriver.launch(ctx))
        {
            new SigIntBarrier().await();

            System.out.println("Shutdown Driver...");
        }
    }
}

@@ -630,16 +630,74 @@
 mples;%0A%0A
+import uk.co.real_logic.aeron.common.BackoffIdleStrategy;%0A
 import u
@@ -1084,16 +1084,18 @@
 ntext()%0A
+//
         
@@ -1149,18 +1149,16 @@
 tegy())%0A
-//
         
@@ -1213,17 +1213,16 @@
 gy(10, 1
-0
 , 1, 1))

Use backoff for conductor idle strategy in low-latency config.