# Concurrent Modification Exception question

**URL:** <https://discourse.processing.org/t/concurrent-modification-exception-question/14905>\
**Category:** Libraries\
**Created:** [October 23, 2019, 9:17pm UTC](https://discourse.processing.org/t/concurrent-modification-exception-question/14905 "2019-10-23T21:17:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 23, 2019, 11:56pm UTC](https://discourse.processing.org/t/concurrent-modification-exception-question/14905/2 "2019-10-23T23:56:42Z")

</div>

> [@robbyc23](#):
>
> Could anyone give me a nudge in the right direction?

> [@Synchronize access to array](https://discourse.processing.org/t/synchronize-access-to-array/14895/4):
>
> Most Processing libs that have callback names w/ the word “event” on them are indeed threaded. thread There are many ways to workaround threading access/mutation; but I prefer to start w/ the simplest 1s before attempting more advanced techniques. man_technologist If your sketch just needs to refresh the draw() when a new data arrives, you can simply use this [noLoop()](https://processing.org/reference/noLoop_.html)/[redraw()](https://processing.org/reference/redraw_.html) combo: bulb

---

_[View the full topic](https://discourse.processing.org/t/concurrent-modification-exception-question/14905)._
