I have a I2C LCD that needs to be updated rapidly, the problem is that. If I write in LCD from a separate Thread it is very slow, but if I write from main thread. Its like 10 times faster. I even set the Thread.Priority to Highest but it doesn't effect anything. And if I start a thread with Highest priority and write from main thread. Main thread is more slower(I think its priory is normal)
What I know about threading is that each thread gets 20ms time slice on each iteration. So if I2C is writing in 40ms, that means it has to wait 20ms x n threads to complete its write. Thats why it is slow ? Seems to me that I should avoid Threads if I need speed.
Am I missing something ?