Brew Question:
Download Questions PDF

Are network callbacks invoked in the context of the main thread, and if so how is the data integrity preserved in the current context?

Brew Interview Question
Brew Interview Question

Answer:

All network callbacks occur within the same thread context, at some point in time after the caller returns control to the AEE event loop. If your application is busy doing something, callbacks will be queued, then invoked once your application returns control to the AEE event loop, ensuring data integrity..

Download Brew Interview Questions And Answers PDF

Previous QuestionNext Question
How many sockets can be opened simultaneously?When reading from a socket the phone reads whatever it can in one go, while the emulator reads large packets in chunks. Why?