Questions tagged [tasklet]

41 questions
24
votes
4 answers

Difference between SoftIRQs and Tasklets

While studying Linux interrupt handling I found that Tasklets and SoftIRQs are two different methods of performing "bottom half" (lesser priority work). I understand this (quite genuine need). Difference being, SoftIRQs are re-entarant while a…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
13
votes
1 answer

What is the difference between tasklet and workqueue

I am a Linux device driver newbie, and want to know the exact differences between tasklet and workqueue. I have the following doubts: Which kernel stack do interrupts, tasklet and workqueue use when running in interrupt/process context? At what…
manav m-n
  • 11,136
  • 23
  • 74
  • 97
7
votes
1 answer

how to understand appengine ndb.tasklet?

From documentation: An NDB tasklet is a piece of code that might run concurrently with other code. If you write a tasklet, your application can use it much like it uses an async NDB function: it calls the tasklet, which returns a Future;…
lucemia
  • 6,349
  • 5
  • 42
  • 75
6
votes
1 answer

More than one tasklet in a step?

I have a tasklet setting some information into my JobContext, and another one checking some stuff to know if I can execute the next steps in my batch or not. Both tasklets work well if I use two different steps in my job flow, but I'd like to use…
Carrm
  • 1,485
  • 3
  • 24
  • 45
4
votes
1 answer

Spring Batch: How to create a Composite Item Writer?

I am using Spring Batch in Spring Boot application. The Spring Boot version is 1.3.5.RELEASE. I am trying to use CompositeItemWriter so that the list of items will first be compressed/zipped by WriterOne and then be passed to WriterTwo where they…
Ashish Pancholi
  • 4,569
  • 13
  • 50
  • 88
4
votes
1 answer

what happens when the tasklet is interrupted by a hardware interrupt?

I wanted to know this part. We know that tasklets can't sleep, then if the HW interrupt comes in what happens to the tasklets? I am facing a crash, in which the tasklet is interrupted by a hW interrupt. I have used spinlock in my tasklet. Should I…
Invictus
  • 2,653
  • 8
  • 31
  • 50
2
votes
1 answer

How the tasklets are scheduled on linux?

The linux has queues for scheduled tasklets.When a cpu returns from an interrupt or from a system call, it checks for scheduled tasklets, and executes them. What if there are too many tasklets to be processed How are they scheduled?.
Tejas
  • 257
  • 1
  • 2
  • 13
2
votes
1 answer

dynamic tasklets or work queues

Background: I'm writing network traffic processing kernel module. I'm getting packets using netfilter hooks. All filtering is done inside hook function, but I don't want to do packet processing here. So solution is tasklets or workqueues. I know the…
cody
  • 3,233
  • 1
  • 22
  • 25
1
vote
1 answer

What is the difference between threaded interrupt handler and tasklet?

I found an interesting topic, threaded interrupt handler, on https://lwn.net/Articles/302043/. It is not a brand new idea and it intended to replace tasklet. But when I studied its functionality, I found there is no difference between threaded…
codexplorer
  • 541
  • 5
  • 21
1
vote
1 answer

FlatFileItemWriter not generating the file when using Tasklet approach

I wrote the following code using tasklet approach to generate a file with data. public class PersonInfoFileWriter implements Tasklet { @Autowired PersonInfoFileUtil personInfoFileUtil; public void…
1
vote
1 answer

No need to declare an extra TaskScheduler

I have found that there is not need to declare an extra TaskScheduler and i can have my tasks like this:
bernardo
  • 23
  • 3
1
vote
1 answer

Why execute() method of tasklet never called

I need write simple app on spring batch. I have config + job + step structure. And inside step I use tasklet. The problem is: tasklet's execute() method never called. The program runs job -> step -> create tasklet and that's all. A found many…
user8732245
1
vote
2 answers

How to make a Spring Batch step depends on previous step?

I am using Spring Batch to read some data from CSV files and put it in a database. My Batch job must be compound of 2 steps : Check files (names, extension, content ..) Read lines from CSV and save them in DB (ItemReader,…
Ghassen
  • 591
  • 1
  • 15
  • 33
1
vote
1 answer

Difficulty getting ndb.tasklets to work in Google App Engine

I'm having a bit of difficulty understanding what's going on with some tasklets that I've written to use with Google App Engine's NDB datastore's asynchronous API's. The overview is: I need to pull together a purchase history for a user, and the…
Steve Sauder
  • 146
  • 1
  • 8
1
vote
1 answer

Spring batch Itemwriter using Storedprocedure

Can we use Stored procedure in Spring batch Itemwriter to write data or Tasklet is the only way?
V.Pattani
  • 21
  • 1
  • 6
1
2 3