A morphline command is never called by multiple threads at the same time so no synchronization is necessary anywhere in morphline commands. To take advantage of multiple cores, compile and use one separate morphline instance per thread. This ensures maximum scalability and throughput with minimum contention, yet retains a simple programming model for users that want to plugin new commands.