In HIVE, Metastore service and Hive service both run in same JVM.
As Hive uses Derby as an embedded database, which can access one session at a time. It is not used for production and used for unit testing.