Skip to content

Why is JobThread marked as daemon? #2

@bukefalos

Description

@bukefalos

Hi, I was looking for simple scheduler library supporting cron expressions and I came across this one. I have a question though:

How is scheduler intended to work when JobThread is marked as daemon? In my very simple scenario I just create Scheduler and schedule some jobs that I want to run regularly every day, but after main method finishes, JVM terminates because there are no non-daemon threads. What is the reasoning behind marking these threads as daemon? I think JobThread should not be marked as daemon by default or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions