1. MULTITASKING
- Posted by javier07b9 Nov 12, 2010
- 1433 views
I have two processor cores, but whether multitasking use or not use it, the processor only uses 50% of the resources ... Someone may show an example that uses 100% of resources?
2. Re: MULTITASKING
- Posted by jimcbrown (admin) Nov 12, 2010
- 1442 views
I have two processor cores, but whether multitasking use or not use it, the processor only uses 50% of the resources ... Someone may show an example that uses 100% of resources?
This isn't possible on Windows. pthreads are used only on Unix platforms, and even in that case you only have a 50/50 chance of starting two tasks on different processors. (Even then, a single Euphoria program will not by itself cause 100% cpu utilization.)
3. Re: MULTITASKING
- Posted by DerekParnell (admin) Nov 12, 2010
- 1410 views
I have two processor cores, but whether multitasking use or not use it, the processor only uses 50% of the resources ... Someone may show an example that uses 100% of resources?
Euphoria has not (yet) been written to take advantage of multi-core systems. Currently it only ever uses a single cpu.
4. Re: MULTITASKING
- Posted by jimcbrown (admin) Nov 12, 2010
- 1408 views
I have two processor cores, but whether multitasking use or not use it, the processor only uses 50% of the resources ... Someone may show an example that uses 100% of resources?
Euphoria has not (yet) been written to take advantage of multi-core systems. Currently it only ever uses a single cpu.
Partial, limited support exists on Unix platforms.
5. Re: MULTITASKING
- Posted by mattlewis (admin) Nov 12, 2010
- 1400 views
Euphoria has not (yet) been written to take advantage of multi-core systems. Currently it only ever uses a single cpu.
Partial, limited support exists on Unix platforms.
Only in the sense that we use threads to accomplish euphoria's cooperative multitasking. But only one core at a time will process euphoria code from a single program. In order to get true parallel execution, there is a lot of work that would need to be done.
Matt
6. Re: MULTITASKING
- Posted by useless Nov 12, 2010
- 1360 views
I have two processor cores, but whether multitasking use or not use it, the processor only uses 50% of the resources ... Someone may show an example that uses 100% of resources?
This isn't possible on Windows. pthreads are used only on Unix platforms, and even in that case you only have a 50/50 chance of starting two tasks on different processors. (Even then, a single Euphoria program will not by itself cause 100% cpu utilization.)
Not true. I often have Eu v3.1 and v4b2 apps that show 100% cpu use in Windos Task Manager. This was a hangover from the pre-win95 days when Windoze was cooperative multitasking. Not giving up the cpu to the OS so often meant that Eu ran faster than any language that did cede cpu control.
useless
7. Re: MULTITASKING
- Posted by mattlewis (admin) Nov 12, 2010
- 1370 views
Not true. I often have Eu v3.1 and v4b2 apps that show 100% cpu use in Windos Task Manager. This was a hangover from the pre-win95 days when Windoze was cooperative multitasking. Not giving up the cpu to the OS so often meant that Eu ran faster than any language
Was that with multiple CPUs? The OP was talking about a muti-core scenario, where task manager reports a single core maxed out as using 50% of total CPU.
Matt
8. Re: MULTITASKING
- Posted by Vinoba Nov 12, 2010
- 1358 views
The new Intel Pentium (i7) has 4 cores and there is new AMD processor which has six cores. Is there a way I can use all these cores? - I am an expert Assembler programmer.
9. Re: MULTITASKING
- Posted by coconut Nov 13, 2010
- 1294 views
Hi Vinoba,
Euphoria programs are single thread processes. A single Thread can only be assigned to 1 core at a time. But you can increase the execution priority of any process. Open task manager in the processes tab select the process you want to change execution priority, right click on that process and from the popup menu select the item regarding execution priority (I don't know the exact caption of the menu has my windows is in french). This option is available in windows xp, vista and 7.
regards, Jacques