# Python 多线程和多进程爬虫

## 多线程爬虫

#!/usr/bin/python
# -*- coding: UTF-8 -*-

import time

count = 0
while count < 3:
time.sleep(delay)
count += 1



## 正文

HandlerThread thread = new HandlerThread("MyHandlerThread");

mHandler.post(new Runnable(){
//...
});


# 物联网开发中常见的几个标准协议

Let’s say you’re in the planning phase of an IoT project. You have a lot of decisions to make, and maybe you’re not sure where to start. In this article, we focus on a framework for how you can think about this problem of standards, protocols, and radios.

The framework, of course, depends on if your deployment is going to be internal, such as in a factory, or external, such as a consumer product. In this conversation, we’ll focus on products that are launching externally to a wider audience of customers, and for that, we have a lot to consider.

# Android内部分享[5]——后台线程和多线程的使用

## 概述

Android 6.0 (API 23) 中引入了一个叫 Doze 的模式和应用程序待机处理， 当我们的屏幕关闭（也就是我们通常说的锁屏）且设备静止的时候， Doze 模式会限制应用程序的一些行为，例如网络不可访问， 线程执行的任务停止等。在 Android 7.0 和 8.0 之后更是进一步限制了后台行为，例如在后台获取位置将被禁止，通过 wakelocks 唤醒应用也被禁止。在 Android 9.0 之后引入了 App Standby Buckets, 应用程序对资源的请求根据应用程序使用模式进行动态优先级排序

# Java中的多线程

## 进程和线程

Java标准库提供了进程和线程相关的API，进程主要包括表示进程的java.lang.Process类和创建进程的java.lang.ProcessBuilder类