# How to execute wait state and tasks parallelly in Temporal

**URL:** <https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281>\
**Category:** Community Support\
**Tags:** java-sdk\
**Created:** [May 31, 2021, 5:07pm UTC](https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281 "2021-05-31T17:07:34Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [June 1, 2021, 5:56pm UTC](https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281/21 "2021-06-01T17:56:58Z")

</div>

Have you seen my answer above?

> [@maxim](#):
>
> Yes, it is not going to hold the thread. You absolutely can have more workflows waiting than your worker has threads.

---

<div class="post-metadata">

**Author:** ![anil\_kumble](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anil_kumble/32/954_2.png) [@anil\_kumble](https://community.temporal.io/u/anil_kumble)\
**Post date:** [June 1, 2021, 6:29pm UTC](https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281/22 "2021-06-01T18:29:11Z")

</div>

> [@maxim](#):
>
> You still have to block the main workflow thread as fully asynchronous workflow implementation is not supported yet.

I am referring to this? `Workflow.sleep()` will not hold thread. but main workflow block while calling Async activities right?

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [June 1, 2021, 7:11pm UTC](https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281/23 "2021-06-01T19:11:03Z")

</div>

Blocking a workflow thread doesn’t mean that you are taking a thread in the worker for the duration of the block. You can have millions of blocked threads across all the workflows and use a single worker with a few hundred threads to handle them if the update rate is not very high.

[Previous page](https://community.temporal.io/t/how-to-execute-wait-state-and-tasks-parallelly-in-temporal/2281.md?page=1)
