Realm ios: In multi threaded environment, what will happen if we perform realm.write{} on same realm entity(for same primary key) from different threads at same time?

In short, how realm handles race conditions ?