前言:監控執行緒
/**
* 說明:執行緒監控工具類
* 日期:2016-2-4
*/public class treadutils
//獲取執行緒的簽名
public static string getthreadsignature()
//獲取執行緒的簽名(一次性獲取,內容和上面方法一樣)
public static void getlogthreadsignature()
//控制當前執行緒睡眠
public static void sleepforinsecs(int secs) catch (interruptedexception e) }
//如下兩個方法執行在工作執行緒,後面介紹
執行緒相關類(ThreadLocal類)
threadlocal,是tread local varcable 執行緒區域性變數 的意思。執行緒區域性變數 threadlocal 的功能其實非常簡單,就是為每乙個使用該變數的執行緒都提供乙個變數值的副本 threadlocal是採用雜湊表的方式來為每個執行緒都提供乙個變數的副本 而不會和其它執...
螢幕相關工具類
import android.content.context import android.content.pm.activityinfo import android.content.res.configuration import android.graphics.bitmap import a...
web相關工具類
2.webutils 下面這些方法為訪問 httpservletrequest 和 httpsession 中的物件和屬性帶來了方便 方法說明 獲取 httpservletrequest 中特定名字的 cookie 物件。如果您需要建立 cookie,spring 也提供了乙個方便的 cookieg...