# Single thread v multi thread enviroment

**URL:** https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109
**Category:** MapWinGIS
**Created:** [March 28, 2019, 3:34am UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109 "2019-03-28T03:34:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dareni](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@dareni](https://mapwindow.discourse.group/u/dareni)
#### Post date: [March 28, 2019, 3:34am UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109/1 "2019-03-28T03:34:02Z")

</div>

i know the code will work well in a multi thread environment but has anyone set it up to work in a single thread environment. i am referring to the processor environment of the computer. if anyone has i would be interested in having you visit with one of our programers

---

<div class="post-metadata">

### Author: ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)
#### Post date: [March 28, 2019, 12:34pm UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109/2 "2019-03-28T12:34:27Z")

</div>

I’m not sure I understand.  
When you don’t implement multi-threading it will be single threaded, right?

What problems are you running into? Perhaps a different approach would work as well.

---

<div class="post-metadata">

### Author: ![dareni](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@dareni](https://mapwindow.discourse.group/u/dareni)
#### Post date: [March 30, 2019, 11:30pm UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109/3 "2019-03-30T23:30:33Z")

</div>

so from what i understand the app that is going to interface with map-window will only run as a single thread at this time, the programmer is wondering if there is a switch in the code to tell map window to run that way as well. This is over my level but if your interested i could pass on your contact information. im sure he would love to be able to chat with someone who understands it better. you can email me and i will pass it on or give you my programmers info.  
dareni at montana .com

---

<div class="post-metadata">

### Author: ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)
#### Post date: [March 31, 2019, 1:23am UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109/4 "2019-03-31T01:23:20Z")

</div>

Hello @dareni

Every class (except for the Point class) is registered with the multi-threaded apartment model. Being _relatively_ new to the code-base, I can’t say for sure that all of the code is indeed thread-safe, but you can certainly use the control in a multi-threaded application, and you _should_ be able to call into multiple objects from multiple threads.

Does this answer your question?

Regards.  
Jerry.

---

<div class="post-metadata">

### Author: ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)
#### Post date: [May 11, 2019, 1:13pm UTC](https://mapwindow.discourse.group/t/single-thread-v-multi-thread-enviroment/109/5 "2019-05-11T13:13:25Z")

</div>


