这可能是在一个线程或并行串口,它实际上取决于其Android操作系统的版本的应用程序正在运行。对于大多数情况下,它将在一个后台线程上串行。
这是谷歌文件说什么: -
Executes the task with the specified parameters. The task returns itself (this) so that the caller can keep a reference to it.
Note: this function schedules the task on a queue for a single background thread or pool of threads depending on the platform version. When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. Starting HONEYCOMB, tasks are back to being executed on a single thread to avoid common application errors caused by parallel execution. If you truly want parallel execution, you can use the executeOnExecutor(Executor, Params...) version of this method with THREAD_POOL_EXECUTOR; however, see commentary there for warnings on its use.
This method must be invoked on the UI thread.
检查此链接execute (Params... params)它会帮助你。
希望它有帮助,
谢谢。
[Go through this](http://stackoverflow.com/questions/6053602/what-arguments-are-passed-into-asynctaskarg1-arg2-arg3) – nobalG
它会按照您编写代码的顺序来对待它。它只是将所有字符串压缩成一个String []数据,然后您可以以任何您想要的方式使用它。 –
你想一个接一个地调用'AsyncTask'来获取参数吗? – Paritosh