• 전문가 요청 쿠폰 이벤트
*영*
Bronze개인
팔로워0 팔로우
소개
등록된 소개글이 없습니다.
전문분야 등록된 전문분야가 없습니다.
판매자 정보
학교정보
입력된 정보가 없습니다.
직장정보
입력된 정보가 없습니다.
자격증
  • 입력된 정보가 없습니다.
판매지수
전체자료 1
검색어 입력폼
  • Mach Task & Thread
    Task ThreadContents T he deference between Unix Process and Mach Task Mach Task Multiple Tasks Mach Thread Multiple Threads Sharing Data among Threads Mach Thread Calls Mach Task CallsThe deference between Unix Process and Mach Task Unix Mach Process Running Computation Resources [file descriptor, memory] Task [Resource Containers] Thread [Computation] Thread [Computation]Mach Task Collection of system resource Provide a protection boundary Tasks are not related to their creating task Memory TaskB Safe! TaskA E rror!Multiple Tasks Protection for a set of resources Additional resources A different set of resources. TaskA TaskB KernelMach Thread H ave their own set of registers and their own state information Execute program code stored in the address space of a Mach task The threads in a t ask run concurrently Single CPU, Multiple processor unused Thread Stack Thread Stack unused BSS Data Text Mach MemoryMultiple Threads When computing can be overlapped with I/O When the hardware provides more than one processor compute compute I/O Time compute compute compute I/O Thread X Thread A Thread B I/O I/O compute I/O I/OMultiple Threads When computing jobs are frequently created and destroyed Database queries changes here Thread B Record Sue and Sam meeting 2 P.M. on 6/7 Thread C Cancel Ed’s lunch with Carol at noon on 6/1 Thread A Is Dan free 9 A.M. on 6/12 ? Calendar ……Sharing Data among Threads Using multiple threads requires synchronizing access to shared data. Race condition A solution for a problem Locking the shared data : Atomic characteristic Task Shared Data Thread B Thread A lock Task Shared Data Thread B Thread A unlock can useMach Thread Calls [spawning] thread_create () thread_set_state () thread_get_state () thread_resume () thread_suspend () thread_self () exit() thread_terminate () kern_return_t status ; task_t parent_task ; thread_t new_thread ; state = thread_create ( parent_task , new_thread ); System call SUCCESS return KERN_SUCCESS state = thread_create ( task_self (), new_thread ); FAIL KERN_INVALID_ARGUMENT KERN_INVALID_SHORTAGE Target task An identifier for the new threadMach Thread Calls [preparing] kern_return_t status ; task_t th ; Int flavor; Thread_state_t new_state ; Thread_state_t cur_state ; Unsigned int count; state = thread_set_state ( th , flavor, new_state , count); Specify the state information state = thread_get_state ( th , flavor , cur_state , count ); thread_create () thread_set_state () thread_get_state () thread_resume () thread_suspend () thread_self () exit() thread_terminate () Specified thread State information The size of new_stateMach Thread Calls [Running] Kern_return_t status ; thread_t th ; status = thread_resume ( th ); Start the thread running thread suspend count = 0; status = thread_suspend ( th ); Stop thread_create () thread_set_state () thread_get_state () thread_resume () thread_suspend () thread_self () exit() thread_terminate ()Mach Thread Calls [Demise ] kern_return_t status; thread_t unneeded_thread ; state = thread_terminate ( unneeded_thread ); Demise of a thread Mach 2.5 exit() thread_create () thread_set_state () thread_get_state () thread_resume () thread_suspend () thread_self () exit() thread_terminate () thread_self ()Mach task Calls [Resuming] kern_return_t status; task_t a_task ; status = task_suspend ( a_task ); status = task_resume ( a_task ); task_suspend () task_resume () task_threads () vm_deallocate () task_info () Resuming all thread Thread suspend count = 0 Task’s suspend count = 0Mach task Calls [Finding] kern_return t status; task_t a_task ; Thread_array_t thread_list Int thread_count status = task_threads ( a_task , thread_list , thread_count ); task_suspend () task_resume () task_threads () vm_deallocate () task_info () Finding All ThreadsMach task Calls [Requesting] kern_return_t status; task_t a_task ; Int which_info ; t ask_info_t info_array ; u nsigned int * info_array_size ; status = task_info ( a_task , which_info , info_array , info_array_size ); task_suspend () task_resume () task_threads () vm_deallocate () task_info () Requesting task InformationMach task Calls [Specialized IPC port] task_suspend () task_resume () task_threads () vm_deallocate () task_info () task_set_special_port () task_get_special_port () kern_return_t status; task_t a_task ; Int which_port port_t special_port status = task_set_special_port ( a_task,which_port , special_port ); status = task_get_special_port ( a_task , which_port , returned_port ); To register a port To ask the registered port notify port task exception portEnd! Thank you!{nameOfApplication=Show}
    공학/기술| 2013.01.22| 18페이지| 1,000원| 조회(82)
    미리보기
전체보기
해캠 AI 챗봇과 대화하기
챗봇으로 간편하게 상담해보세요.
2026년 03월 29일 일요일
AI 챗봇
안녕하세요. 해피캠퍼스 AI 챗봇입니다. 무엇이 궁금하신가요?
10:59 오후
문서 초안을 생성해주는 EasyAI
안녕하세요 해피캠퍼스의 20년의 운영 노하우를 이용하여 당신만의 초안을 만들어주는 EasyAI 입니다.
저는 아래와 같이 작업을 도와드립니다.
- 주제만 입력하면 AI가 방대한 정보를 재가공하여, 최적의 목차와 내용을 자동으로 만들어 드립니다.
- 장문의 콘텐츠를 쉽고 빠르게 작성해 드립니다.
- 스토어에서 무료 이용권를 계정별로 1회 발급 받을 수 있습니다. 지금 바로 체험해 보세요!
이런 주제들을 입력해 보세요.
- 유아에게 적합한 문학작품의 기준과 특성
- 한국인의 가치관 중에서 정신적 가치관을 이루는 것들을 문화적 문법으로 정리하고, 현대한국사회에서 일어나는 사건과 사고를 비교하여 자신의 의견으로 기술하세요
- 작별인사 독후감