# Can a ThreadPoolJob be paused if no locking or (de)/allocation?

**URL:** <https://forum.juce.com/t/can-a-threadpooljob-be-paused-if-no-locking-or-de-allocation/22491>\
**Category:** Development\
**Created:** [May 18, 2017, 10:30am UTC](https://forum.juce.com/t/can-a-threadpooljob-be-paused-if-no-locking-or-de-allocation/22491 "2017-05-18T10:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsenkov](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/tsenkov/32/3150_2.png) [@tsenkov](https://forum.juce.com/u/tsenkov)\
**Post date:** [May 18, 2017, 10:30am UTC](https://forum.juce.com/t/can-a-threadpooljob-be-paused-if-no-locking-or-de-allocation/22491/1 "2017-05-18T10:30:52Z")

</div>

Hi JUCErs,

Scenario:

- I have a ThreadPoolJob running at a (relatively) high priority (8).
- To my knowledge there is no memory allocation or deallocation, locking of mutexes or anything that can cause interruption of that thread’s running.

But it still seems the thread gets interrupted (paused).

Is this possible if all guidelines for the audio thread’s non-interrupted processing are also followed in the task for a non-audio thread?

Cheers!
