דגעדגע

N i X

New member
SQL

select *
from movement_snapshot
where snapshot_time = '2008-05-01 00:00:00'
and item_id in ((select item_id
from movement_snapshot
where snapshot_time = '2008-05-01 00:00:00'
)
except
(select item_id
from item_transaction
where move_at > '2008-05-01 00:00:00'
and move_at <= '2008-06-01 00:00:00'
)
)


python 'bla' bla ruby 'bla' cc '-r' del cat deltree
 

N i X

New member
sdgsdg

דגעדגע דגעדגע קישור
דגעדגע דגעדגע דגע דגע
 

N i X

New member
דגעדגע

Semaphore mutex = new Semaphore(1);
int readers = 0; //Initial number of threads inside the critical section

public int getRadius(){
mutex.acqire(); //Approaching common resources
readers++;
mutex.release();
//Now other readers may read the radius
//**************************************************
int tempRadius = radius;
//**************************************************
mutex.acquire(); //Adain, approaching common resources
readers--;
mutex.release();
return tempRadius;
}

public void setRadius(int newRadius){
mutex.acqire(); //Approaching common resources
while(readers > 0){
mutex.release();
//Let someone else acquire the mutex and set count
mutex.acquire();
}
radius = newRadius;
mutex.release;
}
 
למעלה