In Apache Jmeter, if you have multiple Thread Groups and run them they will be executed in parallel. In some scenarios it causes to some problems(i.e dependency between thread groups). In that case you need to run your thread groups consecutively. Jmeter has such that option.
Run Apache Jmeter and Click on Test Plan. On properties section you can see an option: “Run Thread Groups consecutively”. After that option your thread groups will be executed consecutively(not parallel).