Skip to content

[TASK][Timpani-n] Implement timer_create and timer_settime for periodic activation聽#8

Description

@LGSI-KarumuriHari

馃摑 Task Description

Implement POSIX timer APIs (timer_create, timer_settime) for periodic task activation.

馃搵 Checklist

  • Use timer_create() with CLOCK_MONOTONIC
  • Set timer signal (SIGALRM)
  • Configure periodic timer with timer_settime()
  • Use absolute time (TIMER_ABSTIME) for precision
  • Handle timer expiration via signal handler
  • Clean up timers with timer_delete()

馃敆 Related Requirement

Relates to timer manager implementation
Relates to #27 (Scheduler Logic)

馃搻 Implementation Guidelines

  • Component: timpani-n/System Interface/POSIX Timers
  • Create timer: timer_create(CLOCK_MONOTONIC, &sevp, &timerid)
  • Set periodic: timer_settime() with it_interval set
  • Use TIMER_ABSTIME for absolute time activation
  • Handle SIGALRM in signal handler

馃И Testing Method

  • Unit test: Verify timer creation and configuration
  • Timing test: Measure timer precision
  • Cleanup test: Verify proper timer deletion

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions