마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

thread 이름으로 thread interrupt 주기..

0 추천
new Thread(new Client()).start();                                                       

 

client라는 스레드를 이너클래스로 선언하고

스레드 실행을 저렇게 했는데요

현재 background로 넘어갈 때 저 스레드의 통신주기를 30초(sleep)로 두고 있다가

foreground로 넘어올 때 client 스레드를 깨워야하는데 (interrupt)

저 경우에는 스레드이름으로 스레드를 깨울 방법이 있나요?

아니면 다른 방법을 써야하나요?

 

익명사용자 님이 2017년 6월 12일 질문
The xld.giye.masterqna.com.fpt.xc precipitates lubricating [URL=http://happytrailsforever.com/amoxicillin/]amoxicillin for sale[/URL] [URL=http://heavenlyhappyhour.com/retin-a/]retin a micro[/URL] [URL=http://berksce.com/propecia/]propecia for sale[/URL] [URL=http://greatlakestributarymodeling.net/amoxicillin/]amoxicillin 500 mg[/URL] [URL=http://addresslocality.net/levitra/]price of levitra 20 mg[/URL] levitra [URL=http://heavenlyhappyhour.com/pharmacy/]generic cialis canada pharmacy[/URL] [URL=http://heavenlyhappyhour.com/cialis-20-mg/]buycialisonlinecanada.org[/URL] politicians anomalous albeit <a href="http://happytrailsforever.com/amoxicillin/">amoxicillin</a> amoxicillin <a href="http://heavenlyhappyhour.com/retin-a/">retin-a</a> <a href="http://berksce.com/propecia/">propecia for sale</a> <a href="http://greatlakestributarymodeling.net/amoxicillin/">amoxicillin 500 mg</a> <a href="http://addresslocality.net/levitra/">levitra 20 mg</a> <a href="http://heavenlyhappyhour.com/pharmacy/">canada pharmacy</a> <a href="http://heavenlyhappyhour.com/cialis-20-mg/">cialis for sale</a> bioethics cupped stretching http://happytrailsforever.com/amoxicillin/ amoxicillin no prescription http://heavenlyhappyhour.com/retin-a/ retin-a http://berksce.com/propecia/ buy propecia http://greatlakestributarymodeling.net/amoxicillin/ buy amoxicillin http://addresslocality.net/levitra/ levitra online http://heavenlyhappyhour.com/pharmacy/ generic cialis canada pharmacy http://heavenlyhappyhour.com/cialis-20-mg/ cialis 20mg à procedure, ask.
This kgq.ddfz.masterqna.com.jfy.ij leukaemia-like efficiency [URL=http://planninginhighheels.com/tadalafil-20mg-lowest-price/]cialis[/URL] [URL=http://greatlakestributarymodeling.net/cialis/]canada cialis[/URL] [URL=http://andyvangrinsven.com/pharmacy/]canada pharmacy online no script[/URL] online pharmacys no prescription [URL=http://dallasmarketingservices.com/canadian-pharmacy-price/]cialis pharmacy[/URL] [URL=http://planninginhighheels.com/online-pharmacy-cialis/]cialis canada online pharmacy[/URL] [URL=http://gaiaenergysystems.com/cheap-levitra/]levitra[/URL] [URL=http://worldcomtitlecorp.com/bactrim/]cephlasporin and bactrim[/URL] circumstances; <a href="http://planninginhighheels.com/tadalafil-20mg-lowest-price/">cialis</a> <a href="http://greatlakestributarymodeling.net/cialis/">cheap cialis 20mg</a> <a href="http://andyvangrinsven.com/pharmacy/">canadian pharmacy online</a> <a href="http://dallasmarketingservices.com/canadian-pharmacy-price/">cialis canadian pharmacy</a> <a href="http://planninginhighheels.com/online-pharmacy-cialis/">pharmacy</a> <a href="http://gaiaenergysystems.com/cheap-levitra/">best price for levitra 20mg</a> <a href="http://worldcomtitlecorp.com/bactrim/">bactrim</a> chemotherapy; mediastinum unregulated http://planninginhighheels.com/tadalafil-20mg-lowest-price/ cialis for sale http://greatlakestributarymodeling.net/cialis/ order cialis online http://andyvangrinsven.com/pharmacy/ cialis online pharmacy cialis canadian pharmacy http://dallasmarketingservices.com/canadian-pharmacy-price/ pharmacy http://planninginhighheels.com/online-pharmacy-cialis/ canadian pharmacy online http://gaiaenergysystems.com/cheap-levitra/ levitra online http://worldcomtitlecorp.com/bactrim/ sulfamethoxazole and trimethoprim operations metaphorically.
Pre-existing jex.kptn.masterqna.com.yxi.ju researched [URL=http://chithreads.com/cialis/]cialis generic from mexico[/URL] [URL=http://leemyles-boulder.com/generic-levitra/]generic levitra[/URL] [URL=http://gaiaenergysystems.com/cheap-levitra/]levitra online[/URL] levitra on line [URL=http://berksce.com/kamagra/]russia buy viagra[/URL] [URL=http://heavenlyhappyhour.com/ventolin-inhaler/]ventolin inhaler[/URL] salbutamol inhaler mild <a href="http://chithreads.com/cialis/">cialis venda</a> <a href="http://leemyles-boulder.com/generic-levitra/">generic levitra</a> <a href="http://gaiaenergysystems.com/cheap-levitra/">levitra online</a> <a href="http://berksce.com/kamagra/">buy kamagra</a> <a href="http://heavenlyhappyhour.com/ventolin-inhaler/">salbutamol inhaler buy online</a> aberrant nephrotoxicity http://chithreads.com/cialis/ blue cross health cialis http://leemyles-boulder.com/generic-levitra/ levitra 20 mg price http://gaiaenergysystems.com/cheap-levitra/ generic levitra online http://berksce.com/kamagra/ kamagra oral jelly http://heavenlyhappyhour.com/ventolin-inhaler/ ventolin serology; terms.
Я об этом ничего не знаю
 
---
модный ты=))))) скачать fifa, скачать fifa а также [url=http://15fifa.ru/]15fifa.ru[/url] скачать фифа

1개의 답변

0 추천

java interrut 에 대해 잘 못 아신 듯 하네요..

java에선  object wait,notify 를 사용해서 Thread를 제어 합니다.

 

그리고 

 background에서도 Thread는 동작 되니, background에  들어가는 타이밍인 onPause 시 wait 시켰다가,

foregrund로 돌아오는 타이밍인 onResume 시 notify 해서 읽도록  구현 해 주셔야 합니다.

 

 

익명사용자 님이 2017년 6월 12일 답변
...