1. MULTITASKING

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?

new topic     » topic index » view message » categorize

2. Re: MULTITASKING

javier07b9 said...

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.)

new topic     » goto parent     » topic index » view message » categorize

3. Re: MULTITASKING

javier07b9 said...

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: MULTITASKING

DerekParnell said...
javier07b9 said...

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.

new topic     » goto parent     » topic index » view message » categorize

5. Re: MULTITASKING

jimcbrown said...
DerekParnell said...

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: MULTITASKING

jimcbrown said...
javier07b9 said...

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: MULTITASKING

useless said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: MULTITASKING

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.

new topic     » goto parent     » topic index » view message » categorize

9. Re: MULTITASKING

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu