# Interrupting a ccall, is it possible?

**URL:** <https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196>\
**Category:** General Usage\
**Tags:** ccall\
**Created:** [February 7, 2023, 11:46am UTC](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196 "2023-02-07T11:46:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjproud](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjproud/32/38494_2.png) [@cjproud](https://discourse.julialang.org/u/cjproud)\
**Post date:** [February 7, 2023, 11:46am UTC](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196/1 "2023-02-07T11:46:08Z")

</div>

I’m attempting to interrupt a `ccall` which is executed via `remote_call`:

`task = remotecall(call_solver, wid)`

where `call_solver` is a `ccall` and `wid` is 2, the current worker id being 1. I then try to interrupt it via `interrupt`, for example:

```julia
t = remotecall(call_solver, wid)
sleep(10)
interrupt(wid)

```

and the code doesn’t appear to actually stop executing. Is it possible to interrupt a `ccall`?
