S lock for reads and X lock for writes.That is,you can read immediately but must wait for writing when concurrently.