> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/c/concurrent_computing.md).

# Concurrent computing

A very basic threading support is provided by the `Block.fork()` method:

```ruby
var a = <Enjoy Rosetta Code>

a.map{|str|
    {   Sys.sleep(1.rand)
        say str
    }.fork
}.map{|thr| thr.wait }
```

#### Output:

```
Enjoy
Code
Rosetta
```
