<prompt> Kuandika interface multi-threaded kwa ajili ya kupata na kuandika maadili kwa ramani. Matumizi Java na Mutexes.  <response>: Heres an example of a multi-threaded implementation of a map with read and write operations and the use of mutexes for synchronization in Java:import java.util.HashMap;import java.util.Map;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;public class MapExample private final Map map new HashMap; private final Lock lock new ReentrantLock; public void putString key, int value lock.lock; try map.putkey, value; finally lock.unlock; public Integer getString key lock.lock; try return map.getkey; finally lock.unlock; 