I am trying to print some data from my application.It is printing the data but the page is not coming out of the printer.Please help me on this.
I have commented that but still the same.
i will explain it once again.
see when i am executing the come then after clicking on the button it is printing the message but print is not coming out of the printer. It is printing the message on the paper but the paper is not coming out of printer it is just printing the text and stopping at that particular point only.
We are going to help if you have already tried something and got stuck. But we will not write the code for you.
But there is a simple approach:
Write a function that calculates the max. for a passed range (start pointer and number of items) and stores the maximum value in another array. Create a number of threads that calls that function passing sub ranges of your array. When all threads has finished call the function again passing the array containing the results.
An alternative solution would not use an additional array but a shared variable to hold the maxmimum value found so far. But then the threads must use locking which is probably not very efficient.
modified 30-Mar-17 6:01am.
Last Visit: 31-Dec-99 18:00 Last Update: 22-Sep-23 3:16