df
public java v1 · immutablepublic class DLock extends Thread{ Y huoh; Y huoh1; public DLock(Y y,Y y1){ huoh=y; huoh1=y1; } public void run(){ while(true){ huoh.swap(huoh1); } }}public class DLock extends Thread{ Y huoh; Y huoh1; public DLock(Y y,Y y1){ huoh=y; huoh1=y1; } public void run(){ while(true){ huoh.swap(huoh1); } }}