Boa tarde galera.
Não sei se aqui é o melhor lugar pra perguntar isso, mas estou fazendo um trabalho aqui e tem a seguinte questão nele:
Public synchronized void deposita (int item)
{
try
{
while (preenchido = = tamfila)
wait ( );
f[proxin] = item;
proxin = (proxin + 1) % tamfila;
preenchido+ +;
notify ( );
}
catch (InterruptedException e)
{
}
}
O que significa a palavra chave synchronized na função acima?
Será que alguem pode me ajudar?
t+