viscosity is dependent on...
silicon content and temperature. High silicon content = high viscosity. High temp = low viscosity.
High viscosity - hard for gases to escape so magma forced upwards, violent explosive reaction when magma and gas is released.