Mimecast Interview Question

How can you ensure thread safe.