Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
How to create threads and assign tasks to them? Is there any way to do it, like usage of
thread.start_new_thread ( function, args[, kwargs] )
in Python?
thanks in advance
Haskell threads can be spawned using forkIO.
I recommend also reading the GHC concurrency guide, since it has all the relevant pointers.
Related
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 4 years ago.
Improve this question
I would like to plot the CPU and memory usage of an application on linux vs time. What is the best way to do this?
Would greping these values out from top every 0.1s and writing them into some file work - or is there a better and easier way?
There is an easier way. All of the information displayed in top can be found in /proc/<pid>/, most of it in /proc/<pid>/stat. man proc describes the content of these files.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
As simple as that. My programming teacher do it and I want to know how to do it.
Thanks!
You just need to press up/down key.
Here you have a terminal guide for beginners.
Have a good day!
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 7 years ago.
Improve this question
On the wikipedia page only Haskell and Miranda are mentioned.
I am not sure about elm.
Some other languages make it especially easy to declare a function to be computed lazily.
Are there programming languages where you have a global switch, say for a module or script file to be evaluated lazily?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
There are three artictures in jdk8 source code : 'linux_sparc' 'linux_x86' 'linux_zero'.
I know 'linux_sparc' 'linux_x86' but I don't understand what does the 'linux_zero' mean?.
"Zero" is not an architecture. It is a mode of operation of JDK that uses no assembler and no architecture-specific knowledge, and therefore should (in theory at least) work on any architecture.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
The search algorithm I'm implementing (a simple partial order planner) just has a few choices to make at each invocation. Ideally I would like it to backtrack over the possibilities and return the first found solution.
Take a look at the list ([]) monad instance. It's commonly used for non-determinism.