You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some atomic read/writes can be avoided since chunk_end has the same value of first during all the scheduling
functionEXTRACT_SEQ
old_first <- first
chunk_begin <-MIN(chunk_end + chunk_size, last)
if chunk_begin > chunk_end then
first <- chunk_begin
if chunk_begin < last then ! Confirma se a extração é válida
tmp <- chunk_end
chunk_end <- chunk_first
chunk_first <- tmp
return TRUE
end if
first <- chunk_end ! Conflito: desfaz e trava a si próprio
end if
LOCK(self)
chunk_begin <- first
if chunk_begin < last then
first <- chunk_end <- last
end if
UNLOCK(self)
return chunk_begin < first
end function
The text was updated successfully, but these errors were encountered:
Some atomic read/writes can be avoided since
chunk_end
has the same value offirst
during all the schedulingThe text was updated successfully, but these errors were encountered: