Search:

Type: Posts; User: atgoodprogram

Page 1 of 2 1 2

Search: Search took 0.16 seconds.

  1. How to specify the number of processors to use in each round of execution in a multicore environment

    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...
  2. How to specify the number of processors (cpus) to use in a round of execution in a multicore environment

    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...
  3. Re: How do I write output from one program to several files?

    Can't believe am still stuck on what to do, have tried several methods and it just seems not working
  4. Re: How do I write output from one program to several files?

    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)
  5. Re: How do I write output from one program to several files?

    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...
  6. Re: How do I write output from one program to several files?

    Yes, I ve seen that, how to do it that is my question, How do I split the job among threads
  7. Re: How do I write output from one program to several files?

    I cant see 'how to compute which jobs are assigned to each thread' Can you direct me to it or give me more hint
  8. Re: How do I write output from one program to several files?

    Yes, I need the jobs to be shared or split among the threads
  9. Re: How do I write output from one program to several files?

    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...
  10. Re: How do I write output from one program to several files?

    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
  11. Re: How do I write output from one program to several files?

    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...
  12. Re: How do I write output from one program to several files?

    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...
  13. Re: How do I write output from one program to several files?

    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:...
  14. Re: How do I write output from one program to several files?

    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...
  15. Re: How do I write output from one program to several files?

    Ok, thanks, I ll try that out and give feedback
  16. Re: How do I write output from one program to several files?

    Ok, here is the formatted code:


    <
    import java.io.FileNotFoundException;
    import utilities.FileOutput;

    public class SendToOutputFile
    {
  17. Re: How do I write output from one program to several files?

    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...
  18. Re: How do I write output from one program to several files?

    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...
  19. Re: How do I write output from one program to several files?

    Yes Norm, that is exactly what I want to do

    --- Update ---

    Yes Norm, That is exactly what am trying to do
  20. Re: How do I write output from one program to several files?

    Starstreak, I ve posted the entire code twice but I can't find it, maybe the admins have not authorized it
  21. Re: How do I write output from one program to several files?

    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...
  22. Re: How do I write output from one program to several files?

    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

    ...
  23. Re: How do I write output from one program to several files?

    OK, HERE IS THE FULL CODE
    [code=java]
    <
    public class SeveralJobs {

    /**
    * @param args the command line arguments
    */
    {
  24. Re: How do I write output from one program to several files?

    This option will be very difficult at my level of programming

    --- Update ---



    This option will be quite difficult for my level of java programming
  25. Re: How do I write output from one program to several files?

    Ok, I think I ll need to declare each output file with different names as suggested above, thanks

    --- Update ---



    <for(JobPriority priority:JobPriority.values())
    {...
Results 1 to 25 of 27
Page 1 of 2 1 2