Click here to Skip to main content
15,902,886 members
Please Sign up or sign in to vote.
1.00/5 (7 votes)
See more:
Hi everyone,
There is an algorithm that is used for operating system and can you post it all codes about c#? It's very complex but can you explain how I can write a code to run many process in c#?
Posted
Updated 15-Apr-11 5:19am
v2
Comments
BobJanova 15-Apr-11 12:23pm    
Your question is not at all clear. Please rephrase it and narrow it down to something that is possible to answer.

You need to be careful do you mean multi-processing or multi-threading. I don't think MultiProcessing is possible (or even that necessary) in C#, but I haven't investigated that very deeply. Multi-threading is possible and useful:

John Skeet on Threads/[^]

Hope that answers your question.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Apr-11 15:20pm    
Why would you answer if you "haven't investigated that very deeply"?

There are too many Question and Answers here on CodeProject on the topic, and most of them are mostly concentrated on a simple idea: solving OP's problems ***without*** multi-threading makes no sense. The solutions are also very robust and maintainable.

How can you so easily throw an idea that multi-processing can be impossible or not necessary?
Bringing so baseless and simply false idea well deserve a big 1.

Sorry, Keith,
--SA
Keith Barrow 16-Apr-11 4:04am    
Wow, I suggest you re-read my answer. I *suggested* he did this via multi-*threading*. He asked for multi-*process*. He must choose one or the other, multi-*processing* in the sense he needs is impossible in c# IIRC is is possible in C. OK there is the Process class, but this isn't applicable here.
You should really try google. I did, and got back almost 58,000 results:

search phrase = "sjf algorithm"[^]
 
Share this answer
 
v2
how can i write for sjf preemptive algorithm so? i did sjf non-preemptive in c# but this very complex algoritm to solve preemptive sjf for code :/

for example :
processes / arrival time / burst time / priority
p1 0 8 0
p2 1 4 1
p3 2 1 2

how fine averate time , turnaround time and throught in this example by c# ??
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900