Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: computer science related thread

  1. #21
    Senior Member Diamond Hubber selvakumar's Avatar
    Join Date
    Jan 2005
    Location
    Bay Area
    Posts
    5,450
    Post Thanks / Like
    Quote Originally Posted by Vivasaayi
    indha questionukum yaravadhu answer therinja post pannunga

    " what should happen if the kernel attempts to awaken all the processes sleeping on an event,but no processes are asleep on the event at the time of wakeup"

    I am not sure whether this can happen. Kernel controls how a semaphore and other locking mechanisms should release the processes waiting for an event. Semaphores are actually implemented at the CORE OS LEVEL. (More or less in the binary code specific for particular architecture) The release & wait are controlled by kernel. I think processes cannot come out of the sleep themselves in that case. Again, not clear. Must revisit these things
    Ponnu Vellai tholah? illai Karuppu tholah?
    RE: Aennn.. Puli tholu..


    Use short words, short sentences and short paragraphs. Never use jargon words like reconceptualize, demassification, attitudinally, judgmentally. They are hallmarks of a pretentious ass. - David Ogilvy

  2. # ADS
    Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many
     

  3. #22
    Vivasaayi's Avatar
    Join Date
    Jun 2007
    Posts
    4,795
    Post Thanks / Like
    Quote Originally Posted by selvakumar
    Quote Originally Posted by Vivasaayi
    does anyone have the idea of why "inode" index of filesystems starts from 1 unlike the array index which starts from 0.

    i need to know it urgently
    I am not sure on this since I have lost my touch on kernel related stuffs. My Guess - What about super block ? For calculation of block, block 0 could be (Not sure) assigned for Super block.. illaya
    Let me try.
    selva,

    i thought today u would be on leave.so i dint pm u.

    i found the answer.

    actually the boot loader file has the inode number 0.

    the bad blocks are given inode number 1

    i guess its correct...google panadhula...kadaiseela engeyo oru moolaila evano oruthan eludhirundhan...avana nambiten HEHE
    OM NAMASIVAYA

  4. #23
    Vivasaayi's Avatar
    Join Date
    Jun 2007
    Posts
    4,795
    Post Thanks / Like
    Quote Originally Posted by selvakumar
    Quote Originally Posted by Vivasaayi
    indha questionukum yaravadhu answer therinja post pannunga

    " what should happen if the kernel attempts to awaken all the processes sleeping on an event,but no processes are asleep on the event at the time of wakeup"

    I am not sure whether this can happen. Kernel controls how a semaphore and other locking mechanisms should release the processes waiting for an event. Semaphores are actually implemented at the CORE OS LEVEL. (More or less in the binary code specific for particular architecture) The release & wait are controlled by kernel. I think processes cannot come out of the sleep themselves in that case. Again, not clear. Must revisit these things
    idhethan naanum yosichen...but this question was given in the exercise of "the design of unix operating systems" by maurice j bach

    naanum andha exercise ku solution key thedi salichuten.

    how abt waiting for a certain period of time for the shared variable to be used by some other process and changing the variable status from a shared variable to normal variable...oru guessuthan

    OM NAMASIVAYA

  5. #24
    Vivasaayi's Avatar
    Join Date
    Jun 2007
    Posts
    4,795
    Post Thanks / Like
    ext2fs filesystemoda inode list

    The first ten inodes on the filesystem are special inodes:

    * Inode 1 is the bad blocks inode - I believe that its data blocks contain a list of the bad blocks in the filesystem, which should not be allocated.
    * Inode 2 is the root inode - The inode of the root directory. It is the starting point for reaching a known path in the filesystem.
    * Inode 3 is the acl index inode. Access control lists are currently not supported by the ext2 filesystem, so I believe this inode is not used.
    * Inode 4 is the acl data inode. Of course, the above applies here too.
    * Inode 5 is the boot loader inode. I don't know its usage.
    * Inode 6 is the undelete directory inode. It is also a foundation for future enhancements, and is currently not used.
    * Inodes 7-10 are reserved and currently not used.

    All block and inode addresses start at 1. The first block on the disk is block 1. 0 is used to indicate no block. (Sparse files can have these inside them)

    shabaaa...oru vazhiya answer kandupichachu
    OM NAMASIVAYA

  6. #25
    Senior Member Veteran Hubber
    Join Date
    Oct 2004
    Location
    Kailash
    Posts
    2,121
    Post Thanks / Like
    R there any SQL Server 2005 developers/dba here or Oracle developers??

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Alternative medical Therapies: science or pseudo science?
    By r_kk in forum Miscellaneous Topics
    Replies: 40
    Last Post: 25th September 2009, 10:37 PM
  2. My first acquaintance with computer
    By pavalamani pragasam in forum Stories / kathaigaL
    Replies: 10
    Last Post: 6th August 2009, 01:25 PM
  3. Computer games
    By girishk14 in forum Miscellaneous Topics
    Replies: 64
    Last Post: 24th April 2009, 08:43 AM
  4. Computer Software, Mobile SW, Hardware & related topics
    By Designer in forum Miscellaneous Topics
    Replies: 18
    Last Post: 19th September 2008, 01:11 PM
  5. Computer Related work from Home...
    By Chappani in forum Miscellaneous Topics
    Replies: 0
    Last Post: 14th November 2005, 12:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •