Android Programming and Technical Programming Technical

What is the difference between task, process, application, and thread?

Options
1) task, process, and application every thing is same, but thread is a part of process.
2) process and application are same. Task may contain 1 or more applications, thread is an internal part of a process created by OS.
3) process and task are same. application means program, thread is part of task.
4)process and thread are same. similarly application and thread are same.

Read Solution (Total 0)

Android Other Question

What is the difference between thread and handler thread, in android?

Options
1) Thread will have looper and Message Queue. Default this looper will be prepared to handle incoming messages from other threads.
2) Handler thread will have looper and MessageQueue, but looper is prepared to handle incoming message.
3) Both are same. No difference, but HandlerThread is sub class of Thread class.
4) Both are same. No difference, But HandlerThread is super class of Thread class.
How to avoid synchronization problems in threads?
Options
1) Use synchronized block
2) Use Synchronized methods
3) Use synchronized threads
4) both option 1 and 2 is right.