---
title: "action 中开启新线程dosth"
author: "winder_sety"
date: "2015-03-03T15:57:27Z"
tags: []
categories: ["编程语言"]
slug: "action-dosth"
draft: false
lastmod: "2015-03-03T15:57:27Z"
id: 2188442
url: "https://winder-sety.iteye.com/blog/2188442"
---

```
	/**
	 * 开启新线程执行任务
	 */
	private void doInOtherThread(final Object obj){
		new Thread(){
			public void run() {
				try{
					System.out.println(obj);
				}catch(Exception e){
					e.printStackTrace();
				}		
			};
		}.start();
	}	
```