how to use volatile keyword

hi every one … can you people please tell me the advantages and disadvantages of volatile keyword and please provide a sample program to understand the purpose of volatile

Would have taken you less time to do a search in google then to make your post.