473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Create API which can execute 2 process at time

kirubagari
158 100+
Hi Expert,
I'm seeking for help to create process of creating a new processor that could execute 2 processes at a time. Currently i'm using eclipse.Is this feasible in Eclipse? Any other software i need to install like java swing or java fx. Appreciate your advice .Thanks in advance
Nov 18 '14 #1
4 1478
chaarmann
785 Expert 512MB
Are you developing hardware or OS? (processor)

All new hardware and OS can already execute more than one processes in parallel, so please clarify.
Nov 18 '14 #2
kirubagari
158 100+
Hi Chaarman,

Thanks for the response.Im writting a common API for executing process that conform to the interface. Im writing api which create
a new processor that could execute 2 processes at a time in Java.Im trying to extend my current API to create the job scheduler as well.
Need some advice on this.
Nov 20 '14 #3
chaarmann
785 Expert 512MB
Sorry, I am not getting it, it seem to be no answer to my question. What do you mean with processor? A CPU? Then you need circuit board layouting software. Or do you mean developing machine language for a new CPU? Or do you mean a code instance (scheduler) that controls processes (or threads)?

If that's the case, then I assume your scheduler java program will start some processes via Runtime.execute("shell-command"). That's OS-dependent. In Unix or Windows or IOS? Which shell?
I am not sure, but maybe Java9 has already native support for that.
Nov 20 '14 #4
kirubagari
158 100+
Hi Chaarman,

I'm developing code instance (scheduler) that controls processes in Java.Can i do that in Java example eclipse itself. i'm writing code in window and it will be executed in my window. i wana execute 2 process at one time and setup the job scheduler as well.

For Eg:
Expand|Select|Wrap|Line Numbers
  1. package amz;
  2.  
  3. import java.util.Random;
  4. import net.NetworkingTask;
  5. import graph.SearchGraph;
  6. import matrix.MatrixMultiplication;
  7. import io.IOTask;
  8.  
  9. public class SerialProcessing {
  10.  
  11.     public void run(){
  12.  
  13.         NetworkingTask nt = new NetworkingTask();
  14.         int ntProcessingTime = getEstimateProcessingTime(nt);
  15.         nt.accessSiteXYZ(ntProcessingTime);
  16.  
  17.         SearchGraph sg = new SearchGraph();
  18.         int sgProcessingTime = getEstimateProcessingTime(sg);
  19.         sg.search();
  20.  
  21.         MatrixMultiplication mm = new MatrixMultiplication();
  22.         int mmProcessingTime = getEstimateProcessingTime(mm);
  23.         mm.execute();
  24.  
  25.         IOTask io = new IOTask();
  26.         int iomProcessingTime = getEstimateProcessingTime(io);
  27.         io.readWrite();
  28.  
  29.     }
  30.  
  31.     public int getEstimateProcessingTime(Object task){
  32.  
  33.         Random randomValGenerator = new Random();
  34.         return randomValGenerator.nextInt(100);
  35.  
  36.     }
  37.  
Nov 21 '14 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ajikoe | last post by:
Hello, I would like to create python processes instead of thread. Can anyone give me an example or site which shows a tutorial about how to create processes ? Sincerely Yours, Pujo
1
by: Bo Byriel Nielsen | last post by:
I need to create a process with a new process group. I think that this can be done by using a DllImport of the kernel32 CreateProcess and setting the CREATE_NEW_PROCESS_GROUP creation flag. I'd...
2
by: Mythran | last post by:
ASP.Net v1.1 Trying to create and start an external process (run another application). This application can take a few minutes to complete, but I want the ASP.Net web page to return immediately...
0
by: Carl | last post by:
Hi! I need help with some C# code. I have build a SSIS package with an Execute Process Task. I need to send dynamic variables in to my C# program so I thought it was a good idea to use the...
1
by: justsam | last post by:
Hi Guys, can anybody help me to figure out how much sql server takes to process a query and in case application server is busy and due to that sql server is waiting to send the rsult to Application...
0
by: Carl J. Van Arsdall | last post by:
Hey python, I want to create a process that would "expire" if it didn't complete in a set amount of time. I don't seem to see any timeout values to pass os.system - does anyone know of a good...
0
by: Fredrik Lundh | last post by:
Carl J. Van Arsdall wrote: simple approach: use subprocess.Popen to fork off the external command, then sleep for a short while, check if it's done, sleep a little longer if it hasn't, etc. ...
3
by: brendanmcdonagh | last post by:
I have these values in an array after using split $alltogether = $day . "," . $month . "," . $hour . "," . $minutes . ","; $arr=split(",",$alltogether); // splitting the array $d=$arr; //...
0
by: nshnt | last post by:
Please suggest me how I can create a process in D (uninterruptable sleep) stat on mirror disk. Actually there is some bug in other code, that process some times create a process with D stat on MD and...
0
by: kagiso boikanyo | last post by:
I have been struggling with this progress bar for a while now I need to know whether it is possible to have a real time progress bar for MySQL insertions since database operations are relatively very...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.