1000 by 1000 for loop in android sep
<p>I have a code like this running on Android 2.3.3 (Nexus One)</p>

<pre><code>for(i=0; i&lt;1000; i++){
    for(j=0;j&lt;1000;j++){
         do AND calculation
         do XOR calculation
    }
}
</code></pre>

<p>Is this too much calculation for android? 
I went through the debugger and the debugger lost its control after 3 iteration of the first for loop (3000 iteration total)</p>

<p>I am running this on a new thread like this and call this function on main ui thread..</p>

<pre><code>public void startCalculation(ArrayList&lt;data&gt; featA, ArrayList&lt;data&gt; featB){

    newThread= new Thread(new Runnable(){
        public void run(){
            theFunction();
        }
    });
    newThread.start();
}
</code></pre>

<p>Thanks in advance...</p>
