The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: bitwise and if
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-28-2008
shamrock shamrock is online now
Registered User
 

Join Date: Oct 2007
Location: USA
Posts: 462
Quote:
Originally Posted by Puntino View Post
I tried on my own and I can say that
given that code lines, the line 10 will never be active because the condition in in the if at line 5 can't be true since REFRESING is 0100 (low foru bits) while IN_USE 0001
it could be true if REFRESING = 01001.
So I can't say that EXITING and REFRESHING are two particular cases of IN_USE but they are different cases.
Are you agree with me?
Yes it would be correct to say that the REFRESHING / EXITING cases are the different states a process slot can be in though they are not particular cases of the IN_USE state as proven by the bitwise ANDing of the various process slot states.
Reply With Quote