# Multiple workers in windows

**URL:** <https://discourse.julialang.org/t/multiple-workers-in-windows/10210>\
**Category:** General Usage\
**Created:** [April 7, 2018, 12:29am UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210 "2018-04-07T00:29:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diger/32/36786_2.png) [@Diger](https://discourse.julialang.org/u/Diger)\
**Post date:** [April 7, 2018, 12:29am UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210/1 "2018-04-07T00:29:33Z")

</div>

When running julia from cygwin I can write  
Julia -p 4  
to start it with 4 workers. How can I run 4 workers in Julia directly from the windows program (using the short-cut)

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [April 7, 2018, 1:25am UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210/2 "2018-04-07T01:25:25Z")

</div>

Just use `addprocs`

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [April 7, 2018, 4:50pm UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210/3 "2018-04-07T16:50:05Z")

</div>

`bin/julia.exe` can also be run directly and should accept that argument.

---

<div class="post-metadata">

**Author:** ![Seif\_Shebl](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Post date:** [April 7, 2018, 9:39pm UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210/4 "2018-04-07T21:39:09Z")

</div>

Assuming that `julia.exe` is in your Windows `PATH`, you can create a new file on Desktop named `Juliap4.bat`, for example, with the following content:

```julia
julia.exe -p4

```

Now, you can double-click on this file to open Julia with 4 workers. If `julia.exe` is not included in your system’s `PATH` or you have multiple installations of Julia and you need a specific version, replace `julia.exe` above with the full path to your desired executable.

---

<div class="post-metadata">

**Author:** ![Diger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diger/32/36786_2.png) [@Diger](https://discourse.julialang.org/u/Diger)\
**Post date:** [November 30, 2018, 7:46pm UTC](https://discourse.julialang.org/t/multiple-workers-in-windows/10210/5 "2018-11-30T19:46:47Z")

</div>

Can I use this batch file also for stuff I originally had in a separate juliarc.jl file with the content

using Plots  
f = “Sans”  
default(tickfont = font(f,8),  
guidefont = font(f,11),  
legendfont = font(f,8))

and if yes, how ?
