Hello, I already know how to use the runtime method to get the number of available processors but what I need is how to control the number of processors to be used during each round of test or...
Type: Posts; User: atgoodprogram
Hello, I already know how to use the runtime method to get the number of available processors but what I need is how to control the number of processors to be used during each round of test or...
Hello, I already know how to use the runtime method to get the number of available processors but what I need is how to control the number of processors to be used during each round of test or...
Can't believe am still stuck on what to do, have tried several methods and it just seems not working
Ok, at what point do I specify that, because I have to specify not just a number but where each thread starts and ends (isn't it?) or can it just be simply specified as N/i? (thanks in advance)
Just as stated earlier, the number of jobs to be processed (generated) are specified in the body of the program, this can be changed after every run inside the program. If I can get a general...
Yes, I ve seen that, how to do it that is my question, How do I split the job among threads
I cant see 'how to compute which jobs are assigned to each thread' Can you direct me to it or give me more hint
Yes, I need the jobs to be shared or split among the threads
Here is my thread code, I intend to split the task of generating the jobs in my previous question among different number of threads ranging from 1 to 4.
The number of the jobs to be generated and...
This set of output am currently writing to output files are exactly what I need to do with the threads. I mean the last problem that just got solved
I have a thread class that uses threads to generate these jobs, in that class, a range of jobs from 1,000 jobs upto 1,000000 in steps of 2,000 is defined to be generated and sorted. Each set of jobs...
Happy to inform that I ve got everything running the way I want now. But I need to post a new thread I have two more questions and I shall be done:
(1) Is how to read from a file
(2) How to share...
Here is the full text of the error message:
Moving through jobs one by one with a loop:
Job[id: 0, Size: 301, Platform: Windows, Priority: High]
Job[id: 1, Size: 115, Platform: Windows, Priority:...
I ve tried it and Its not working, its bringing a nullpointer error, or nothing is being written to all the outputfiles, even the first file (TextDoc2) where all the jobs are first generated into has...
Ok, thanks, I ll try that out and give feedback
Ok, here is the formatted code:
<
import java.io.FileNotFoundException;
import utilities.FileOutput;
public class SendToOutputFile
{
The code was supposed to select the generated jobs from the first file and write them all to the other files based on their priority, for instance all jobs with priority high were supposed to be...
I ve written the code but only one file is been written to the several output files.
Here is what I did:
<
import java.io.FileNotFoundException;
import utilities.FileOutput;
public class...
Yes Norm, that is exactly what I want to do
--- Update ---
Yes Norm, That is exactly what am trying to do
Starstreak, I ve posted the entire code twice but I can't find it, maybe the admins have not authorized it
Here is the full code:
<
public class SeveralJobs { // This class uses a method from another class to generate jobs with different sizes and priorities
/**
* @param...
Here is the full code as was requested:
<
public class SeveralJobs { // This class uses a method from another class to generate jobs with different sizes and priorities
...
OK, HERE IS THE FULL CODE
[code=java]
<
public class SeveralJobs {
/**
* @param args the command line arguments
*/
{
This option will be very difficult at my level of programming
--- Update ---
This option will be quite difficult for my level of java programming
Ok, I think I ll need to declare each output file with different names as suggested above, thanks
--- Update ---
<for(JobPriority priority:JobPriority.values())
{...