# Threaded Fills

```none
[1]:
```

This notebook explores parallel filling by hand (not using the `threads=` argument).

```none
[2]:
```

This is a traditional fill.

```none
[3]:
```

This is a single threaded atomic fill.

```none
[4]:
```

This is a threaded fill (storage not threadsafe, so will get the wrong result; just for comparison)

This is a threaded fill, this time with atomics. It may not be faster, but is useful in situations where you are filling from multiple places in your code.

```none
[5]:
```

This makes four separate histograms, then fills them and adds at the end.

```none
[6]:
```

```none
[7]:
```

The expense of creating the histogram and summing them must be significantly less than the cost of filling for this to be faster.
