multicore

How to use all the cores in Windows 7?

泪湿孤枕 提交于 2019-12-10 14:48:59
问题 I am not sure if this belongs to Stackoverflow or Superuser but I thought I would ask here. I have a console based application written in C which currently takes about an hour to terminate in Windows 7 64-bit OS. The task manager reports that the application is using only 25% of the available CPU. I would like to reduce the run time by increasing cpu usage. Is there any way to let the application use all four cores (the laptop has Core i5) instead of just one? I am assuming that task manager

Why is R multicore only using one core? [duplicate]

血红的双手。 提交于 2019-12-09 17:27:22
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Parallel processing in R limited I've written some code in R multicore, and I'm running it on a 24-core machine. In fact there are only 12 cores, but they are hyperthreaded, so it looks like there are 24. Here's what's strange: all the threads run on the same single core! So they each only use a tiny amount of cpu, instead of each running on a single core, and chewing up all available cores. For simplicity, I'm

The state of programming and compiling for multicore systems

给你一囗甜甜゛ 提交于 2019-12-09 13:16:04
问题 I'm doing some research on multicore processors; specifically I'm looking at writing code for multicore processors and also compiling code for multicore processors. I'm curious about the major problems in this field that would currently prevent a widespread adoption of programming techniques and practices to fully leverage the power of multicore architectures. I am aware of the following efforts (some of these don't seem directly related to multicore architectures, but seem to have more to do

Minimum time a thread can pause in Linux

我只是一个虾纸丫 提交于 2019-12-09 10:18:10
问题 In my application, threads need to pause for a very little time (100s of clock cycles). One way to pause is to call nanosleep, but I suppose it requires a system call to the kernel. Now I want to pause without going to the kernel. Note that I have enough cores to run my threads on and I bind each thread to a separate core, so even an instruction that can halt the core for a little while would be good. I am using x86. I just want the thread to halt while pausing. I don't want a busy loop or a

What is the case against F#? [closed]

会有一股神秘感。 提交于 2019-12-09 10:05:07
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Straightforward C#/Java code is extremely difficult to parallelize, multi-thread, etc. As a result, straightforward C#/Java code will use less and less of the total processing power on a box (because everything is now going to be multi-core). Solving this problem in C# and

Run an R script at boot

為{幸葍}努か 提交于 2019-12-09 09:53:42
问题 First of all, this may need to be moved to superuser. I couldn't decide which venue was better. I am trying to write an R script that will run at boot/reboot and add that machine to a pool of doRedis workers. (doRedis is a foreach backend). Here is my R script, "~/Rworker.R" #Define Parameters require(multicore) Host <- 'ip_of_doRedis_Server' cores <- multicore:::detectCores() TO <- 24*3600 #Start Workers require('doRedis') startLocalWorkers(cores,'jobs',host=Host,port=6379, timeout = TO) I

How many CPUs are needed before Erlang is faster than single-threaded Java [closed]

…衆ロ難τιáo~ 提交于 2019-12-09 09:51:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I am currently using Java, I've read a lot about Erlang on the net, and I have 2 big questions: How much slower (if any) will Erlang be over simple Java? I'm assuming here that Java is going to be faster from the shootout benchmarks on the net (Erlang doesn't do that well). So,

What is the difference between multicore programming in Erlang and other language?

别等时光非礼了梦想. 提交于 2019-12-09 04:04:02
问题 I read Joe Armstrong's 'Programming Erlang', and the 'n times faster in n core machine' theory. The efficient way to multicore programming in Erlang is to use lots of processes (threads). I'm a C++ programmer, so I am curious about the difference between making lots of threads in C++ and making lots of processes in Erlang. I understand dealing with threads in C/C++ is not that easy. Also I know locking/unlocking makes the system slow down. But it is not impossible , right? So.. why is Erlang

Mac OS X shell utility that shows individual cpu usage in multi-core systems

﹥>﹥吖頭↗ 提交于 2019-12-09 02:39:54
问题 I've been looking for a osx utility that shows cpu usage for each cpu. For example CPU 0 - 10% CPU 1 - 2% ... I know of many ways of getting this information in other Unix-like system (/proc, mpstat, etc) but none work in osx. The most useful one for Mac is top but it only shows total cpu usage. I need the application to be run from the shell so that I can log the usage over time. I also tried cpuwalk.d but it only shows you if the application is running in one or more cores. If you take a

What is a “spark” in Haskell

馋奶兔 提交于 2019-12-08 22:49:17
问题 I'm confused about the notion of "spark" Is it a thread in Haskell? Or is the action of spawning a new thread ? Thanks everybody: So to summarize, sparks are not thread but more of unit of computation (tasks to put it in C#/Java terms). So it's the Haskell way of implementing the task parallelism. 回答1: See A Gentle Introduction to Glasgow Parallel Haskell. Parallelism is introduced in GPH by the par combinator, which takes two arguments that are to be evaluated in parallel. The expression p