본문 바로가기

카테고리 없음

2020-06-15 08시 개발자 글 모음 | "뮤텍스 해제(Mutex Unlock)" 외 3개 이야기

[leetCode] 88. Merge Sorted Array (Python) by 장동현 about Python

  • Given two sorted integer arrays nums1 and nums2
  • merge nums2 into nums1 as one sorted array
  • You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional elements from nums2


사무실엔 아무도 없다 - 막차가 올 때 퇴근하기 by 한상훈

  • 똑똑하고 멋진 사람들과 일할 수 있고
  • 나는 요즘에서야 한 주에 70시간을 일하는 것이 그렇게 힘들지 않다는걸 느낀다
  • 삶이 이렇게 지옥과 천국을 왔다갔다 할 수 있다는걸 보면 쉽게 포기할만한건 아닌거 같다


카이스트(KAIST)의 봄 GSIS 세미나 다녀왔습니다 >ㅁ<)/ by 한승훈


    뮤텍스 해제(Mutex Unlock)/스핀락 해제(Spinlock Unlock)와 태스크 스위칭(Task Switching) by 한승훈 about Linux

    • __owner_flags(owner)); if (old == owner) { if (owner & MUTEX_FLAG_WAITERS) break; return; } owner = old; } spin_lock(&lock->wait_lock); debug_mutex_unlock(lock); if (!list_empty(&lock->wait_list)) { /* get the first entry from the wait-list: */ struct mutex_waiter *waiter = list_first_entry(&lock->wait_list
    • next); spin_unlock(&lock->wait_lock); wake_up_q(&wake_q); } void wake_up_q(struct wake_q_head *head) { struct wake_q_node *node = head->first; while (node != WAKE_Q_TAIL) { struct task_struct *task; task = container_of(node
    • _RET_IP_); do_raw_spin_unlock(lock); preempt_enable(); } #define preempt_enable() \ do { \ barrier(); \ if (unlikely(preempt_count_dec_and_test())) \ __preempt_schedule(); \ } while (0) asmlinkage __visible void __sched notrace preempt_schedule(void) { /* * If there is a non-zero preempt_count or interrupts are disabled